Part Number Hot Search : 
C321SL0 SD850 TL084MN 2SD1741 F21M15DU MURS360 FN4261 ERD25FJP
Product Description
Full Text Search
 

To Download W6691CD Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 W6691 Preliminary
ISDN S/T Interface Transceiver
W6691 ISDN S/T Interface Transceiver Data Sheet
The information described in this document is the exclusive intellectual property of Winbond Electronics Corp and shall not be reproduced without permission from Winbond. Winbond is providing this document only for reference purposes for W6691-based system design. Winbond assumes no responsibility for errors or omissions. All data and specifications are subject to change without notice.
1
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
TABLE OF CONTENTS REVISION HISTORY.............................................................................................................................. 7 1. GENERAL DESCRIPTION................................................................................................................. 8 2. FEATURES......................................................................................................................................... 9 3. PIN CONFIGURATIONS .................................................................................................................. 10 4. PIN DESCRIPTION .......................................................................................................................... 13 5. SYSTEM DIAGRAM AND APPLICATIONS..................................................................................... 16 6. BLOCK DIAGRAM ........................................................................................................................... 18 7. FUNCTIONAL DESCRIPTIONS....................................................................................................... 19
7.1.1 Main Block Functions ......................................................................................................................19 7.1.2 Interface and Operating Modes .......................................................................................................20 7.2.1 S/T Interface Transmitter/Receiver..................................................................................................20 7.2.2 Receiver Clock Recovery And Timing Generation ..........................................................................25 7.2.3 Layer 1 Activation/Deactivation .......................................................................................................26 7.2.4 Layer 1 Activation /Deactivation in LT-S Mode................................................................................32 7.2.5 D Channel Access Control ..............................................................................................................35 7.2.6 Frame Alignment .............................................................................................................................36 7.2.7Multiframe Synchronization ..............................................................................................................38 7.2.8Test Functions ..................................................................................................................................40
7.3 B Channel Switching ........................................................................................................................ 41 7.4 PCM Port .......................................................................................................................................... 42 7.5 D Channel HDLC Controller ............................................................................................................. 42
7.5.1 D Channel Message Transfer Modes ..............................................................................................44 7.5.2 Reception of Frames in D Channel .................................................................................................45 7.5.3 Transmission of Frames in D Channel ............................................................................................46
7.6 GCI Mode Serial Interface Bus ......................................................................................................... 47
7.6.1 GCI Mode C/I Channel Handling .....................................................................................................49 7.6.2 GCI Mode Monitor Channel Handling..............................................................................................50
7.7 8-bit Microprocessor Interface ........................................................................................................ 52
8 REGISTER DESRCRIPTIONS.......................................................................................................... 53
8.1 D Channel HDLC Controller Register Address Map......................................................................... 53 8.2 GCI Bus Control Register Address Map ........................................................................................... 54 8.3 Miscellaneous Register Address Map .............................................................................................. 55 8.4 D Channel HDLC Controller Register Memory Map ......................................................................... 55
2
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
8.5 GCI Bus Register Memory Map........................................................................................................ 57 8.6 Miscellaneous Register Memory Map .............................................................................................. 58 Table 8.6 Miscellaneous Register Memory Map .................................................................................... 58 8.7 D channel HDLC Controller Register Description............................................................................. 58
8.7.1 D_ch receive FIFO 8.7.2 D_ch transmit FIFO 8.7.4 D_ch Mode Register 8.7.6 Interrupt Mask Register D_RFIFO Read Address 00H......................................................................58 D_XFIFO Write Address 01H.....................................................................59 D_CMDR Write Address 02H .............................................................59 D_MODE Read/Write Address 03H ..........................................................60 ISTA Read_clear Address 04H.......................................................61 D_EXIR Read_clear Address 06H .......................................63 D_EXIM Read/Write Address 07H...............................64 D_XSTA Read Address 0AH..............................................65 D_RSTA Read Address 0BH ................................................65 IMASK Read/Write Address 05H...........................................................63
8.7.3 D_ch command register 8.7.5 Interrupt Status Register
8.7.7 D_ch Extended Interrupt Register 8.7.9 D_ch Transmitter Status Register 8.7.10 D_ch Receive Status Register 8.7.11 D_ch SAPI Address Mask 8.7.12 D_ch SAPI1 Register 8.7.13 D_ch SAPI2 Register 8.7.14 D_ch TEI Address Mask 8.7.15 D_ch TEI1 Register 8.7.16 D_ch TEI2 Register
8.7.8 D_ch Extended Interrupt Mask Register
D_SAM Read/Write Address 0EH ................................................66
D_SAP1 Read/Write Address 0FH........................................................67 D_SAP2 Read/Write Address 10H ........................................................67 D_TAM Read/Write Address 11H ....................................................67 D_TEI1 Read/Write Address 12H..........................................................68 D_TEI2 Read/Write Address 13H..........................................................68 D_RBCH Read Address 16H .....................................69 D_RBCL Read Address 17H....................................69
8.7.17 D_ch Receive Frame Byte Count High 8.7.18 D_ch Receive Frame Byte Count Low 8.8.1 Channel Selection Register
8.8 GCI Bus Register Description........................................................................................................... 70
CSEL Read/Write Address 18H ................................................70 CIR Read Address 1AH...............................................70 CIX Read/Write Address 1BH ...................................71 8.8.2 Command/Indication Receive Register 8.8.3 Command/Indication Transmit Register 8.8.4 S/Q Channel Receive Register 8.8.5 S/Q Channel Transmit Register 8.8.6 Monitor Receive Channel 0 8.8.7 Monitor Transmit Channel 0
SQR Read Address 1CH ...........................................................71 SQX Read/Write Address 1DH ...............................................72 MO0X Read/Write Address 21H................................................72 MO0I GCR MO1X MO1I Read_clear Read Address 22H .................................73 Address 26H .....................................74 Address 28H.......................75 MO0C Read/Write Address 23H .....................................73 MO1R Read Address 27H ...........................................75 Read/Write Read_clear Address 29H ...............................76 MO0R Read Address 20H..........................................................72
8.8.8 Monitor Channel 0 Interrupt Register 8.8.9 Monitor Channel 0 Control Register 8.8.10 GCI Mode Control/Status Register 8.8.11 Monitor Receive Channel 1 Register 8.8.12 Monitor Transmit Channel 1 Register 8.8.13 Monitor Channel 1 Interrupt Register 8.8.14 Monitor Channel 1 Control Register 8.8.14 GCI CI1 Indication Register CI1R
MO1C Read/Write Address 2AH ....................................76 Read Address 31H ........................................................77
3
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
8.8.16 GCI CI1 Command Register
CI1X
Read/Write Address 32H................................................77 GCI_EXIM Read/Write Address 35H .........................78
8.8.17 GCI Extended Interrupt Register
GCI_EXIR Read_clear Address 34H.....................................78
8.8.18 GCI Extended Interrupt Mask Register 8.9.1 Timer 1 Register 8.9.2 Timer 2 TIMR2
8.9 Miscellaneous Register .................................................................................................................... 79
TIMR1 Read/Write Address 38H ....................................................................79 Read/ Write Address 39H................................................................80 PCR Read/Write Address 3AH........................................................81 PIODR Read/Write Address 3BH ............................................82 Read/Write Address 3CH 83
8.9.3 Peripheral Control Register 8.9.4 Peripheral I/O Data Register 8.9.6 ACTL1 8.9.7 ACTL2 8.9.8 ACTL3
8.9.5 SFCTL Switch Functional Control Register
Auxiliary Control Register 1 Read/Write Address 3DH ..................................................84 Auxiliary Control Register2 Read/Write Address 3EH ..................................................85 Auxiliary Control Register 3 Read/Write Address 3FH .................................................86
8.10 B1 Channel HDLC Controller Register Address MAP .................................................................... 86 8.11 B1 Channel HDLC controller Register Memory Map ...................................................................... 87
8.11.1 B1_ch receive FIFO 8.11.2 B1_ch transmit FIFO 8.11.4 B1_ch Mode Register B1_RFIFO Read Address 50H ..........................................................87 B1_XFIFO Write Address 51H ...........................................................87 B1_CMDR Read/Write Address 53H ................................................88 B1_EXIR Read_clear Address 56H...................................90 B1_EXIM Read/Write Address 57H ................91 59H ..................................92 Read Address 58H.......................................................91 B1_MODE Read/Write Address 54H....................................................89
8.11.3 B1_ch command register
8.11.5 B1_ch Extended Interrupt Register 8.11.7 B1_ch Status Register B1_STAR
8.11.6 B1_ch Extended Interrupt Mask Register 8.11.8 B1_ch Address Mask Register 1 8.11.9 B1_ch Address Mask Register 2 8.11.10 B1_ch Address Register 1 8.11.11 B1_ch Address Register 2
B1_ADM1 Read/Write Address
B1_ADM2 Read/Write Address 5AH .....................................93
B1_ADR1 Read/Write Address 5BH ...........................................93 B1_ADR2 Read/Write Address 5CH ...........................................93 B1_RBCL Read Address 5DH ................................93 B1_RBCH Read Address 5EH ...............................94
8.11.12 B1_ch Receive Frame Byte Count Low 8.11.13 B1_ch Receive Frame Byte Count High 8.11.14B1_ch Transmit Idle Pattern
B1_IDLE Read/Write Address 5FH .............................................94
8.12 B2 Channel HDLC Controller Register Address Map ..................................................................... 95 8.13 B2 Channel HDLC Controller Register Memory Map ..................................................................... 95
9. ELECTRICAL CHARACTERISTICS ................................................................................................ 97
9.1 Absolute Maximum Rating................................................................................................................ 97 9.2 Power Supply ................................................................................................................................... 97 9.3 DC Characteristics............................................................................................................................ 97 9.4 Preliminary Switching Characteristics .............................................................................................. 99
9.4.1 PCM Interface Timing ......................................................................................................................99 9.4.2 8-bit Microprocessor Timing ..........................................................................................................101
4
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
9.5 AC Timing Test Conditions............................................................................................................. 104
10. ORDERING INFORMATION ........................................................................................................ 104 11. PACKAGE DIMENSIONS ............................................................................................................ 105
LIST OF FIGURES FIG.3.1 W6691 PIN CONFIGURATION - INTEL BUS MODE ............................................................. 10 FIG.3.2 W6691 PIN CONFIGURATION - MOTOROLA BUS MODE .................................................. 12 FIG.5.1 ISDN INTERNET PASSIVE S-CARD WITH TWO POTS CONNECTIONS ........................... 16 FIG.5.2 ISDN PAXB APPLICATION ..................................................................................................... 17 FIG.6.1 W6691 FUNCTIONAL BLOCK DIAGRAM .............................................................................. 18 FIG.7.1 FRAME STRUCTURE AT S/T INTERFACE ........................................................................... 21 FIG.7.2 W6691 WIRING CONFIGURATION IN TE APPLICATIONS.................................................. 22 FIG.7.3 EXTERNAL TRANSMITTER CIRCUITRY .............................................................................. 23 FIG.7.4 EXTERNAL RECEIVER CIRCUITRY...................................................................................... 24 FIG.7.5 LAYER 1 ACTIVATION/DEACTION STATE DIAGRAM - NORMAL MODE .......................... 30 FIG.7.6 LAYER 1 ACTIVATION/DEACTIVATION STATE DIAGRAM - SPECIAL MODE ................... 31 FIG.7.7 LAYER 1 ACTIVATION/DEACTIVATION STATE DIAGRAM IN LT-S.................................... 34 FIG.7.9 SSP AND SCP TEST SIGNALS .............................................................................................. 41 FIG.7.10 GCI TE MODE CHANNEL STRUCTURE.............................................................................. 48 FIG.7.11 GCI NON -TERMINAL MODE CHANNEL STRUCTURE..................................................... 49 LIST OF TABLES TABLE 7.1 OUTPUT PHASE DELAY COMPENSATION TABLE ........................................................ 25 TABLE 7.2 LAYER 1 COMMAND CODES ........................................................................................... 28 TABLE 7.3 LAYER 1 INDICATION CODES ......................................................................................... 28 TABLE 7.4 LAYER 1 COMMAND CODES ........................................................................................... 33 TABLE 7.5 LAYER 1 INDICATION CODES ......................................................................................... 33 TABLE 7.8 D PRIORITY CLASSES ..................................................................................................... 35 TABLE 7.9 D PRIORITY COMMANDS/INDICATIONS ........................................................................ 35 TABLE 7.10 MULTIFRAME STRUCTURE IN S/T INTERFACE .......................................................... 39 TABLE 8.1 D CHANNEL HDLC CONTROLLER REGISTER ADDRESS MAP.................................... 53 TABLE 8.2 GCI BUS CONTROL REGISTER ADDRESS MAP ........................................................... 54 TABLE 8.3 MISCELLANEOUS REGISTER ADDRESS MAP .............................................................. 55 TABLE 8.4 D CHANNEL HDLC CONTROLLER REGISTER MEMORY MAP..................................... 55 Publication Release Date: Sep 2001 Revision 1.1
5
Preliminary W6691
TABLE 8.5 GCI BUS REGISTER MEMORY MAP ............................................................................... 57 TABLE 8.7 B1 CHANNEL HDLC CONTROLLER REGISTER ADDRESS MAP.................................. 86 TABLE 8.8 B1 CHANNEL HDLC CONTROLLER REGISTER MEMORY MAP ................................... 87 TABLE 8.9 B2 CHANNEL HDLC CONTROLLER REGISTER ADDRESS MAP.................................. 95 TABLE 8.10 B2 CHANNEL HDLC CONTROLLER REGISTER MEMORY MAP ................................. 95
LIST OF TABLES TABLE 7.1 OUTPUT PHASE DELAY COMPENSATION TABLE ........................................................ 25 TABLE 7.2 LAYER 1 COMMAND CODES ........................................................................................... 28 TABLE 7.3 LAYER 1 INDICATION CODES ......................................................................................... 28 TABLE 7.4 LAYER 1 COMMAND CODES ........................................................................................... 33 TABLE 7.5 LAYER 1 INDICATION CODES ......................................................................................... 33 TABLE 7.8 D PRIORITY CLASSES ..................................................................................................... 35 TABLE 7.9 D PRIORITY COMMANDS/INDICATIONS ........................................................................ 35 TABLE 7.10 MULTIFRAME STRUCTURE IN S/T INTERFACE .......................................................... 39 TABLE 8.1 D CHANNEL HDLC CONTROLLER REGISTER ADDRESS MAP.................................... 53 TABLE 8.2 GCI BUS CONTROL REGISTER ADDRESS MAP ........................................................... 54 TABLE 8.3 MISCELLANEOUS REGISTER ADDRESS MAP .............................................................. 55 TABLE 8.4 D CHANNEL HDLC CONTROLLER REGISTER MEMORY MAP..................................... 55 TABLE 8.5 GCI BUS REGISTER MEMORY MAP ............................................................................... 57 TABLE 8.7 B1 CHANNEL HDLC CONTROLLER REGISTER ADDRESS MAP.................................. 86 TABLE 8.8 B1 CHANNEL HDLC CONTROLLER REGISTER MEMORY MAP ................................... 87 TABLE 8.9 B2 CHANNEL HDLC CONTROLLER REGISTER ADDRESS MAP.................................. 95 TABLE 8.10 B2 CHANNEL HDLC CONTROLLER REGISTER MEMORY MAP ................................. 95
6
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
REVISION HISTORY
Date Jan 2001 Sep 2001 Version 1.0 1.1 The first version is edited. 1. W6691 Pin Configuration -- Intel Bus mode is modified on page11. 2. W6691 Pin Configuration - Motorola Bus Mode is modified on page 12 3. Pin Description is modified on page 13. 4. The chapter 7.1.2 Interface and Operating Mode description is changed on page 20. 5. The transformer ratio 1:1 is changed to 2:1 on Fig 7.3 and 7.4 page 23 and page 24. Content of Revision
7
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
1. GENERAL DESCRIPTION
W6691 consists of one D channel HDLC controller and two B HDLC controller channel access. The HDLC controller facilitates efficient access to signaling, data and voice services. It provides multiplex/non- mutiplexe 8- bit microprocessor interface. The interface is selected by external MBS selection. In addition, W6691 can be operated in TE, LT-S and LT-T mode programmed by external pin. In TE mode, W6691 provides PCM bus or GCI bus to connect with CODEC. In LT mode, it can used in NT2 application. W6691 also provides various B channel switching function among PCM, GCI and Layer2. It adopts 3.3V process to manufacture. The FIFO size of D channel is 64 byte. The FIFO size of two B channel are 128bytes. Two extended external interrupt is designed for peripheral interrupt saving extra interrupt circuit design. One layer activation indication output can be programmed by microprocessor control or W6691 chip internal control. The DPLL circuit is design in chip to generate the DCL and FSC signal for NT2 application. It can eliminate extra DPLL circuit on board. In order to save a lot of crystal on board, W6691 can provide 7.68MHz OSC signal for other chip needs the clock in TE or NT2 application.
8
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
2. FEATURES
* Full Duplex 2B+D S/T interface transceiver compliant with ITU I.430 Recommendation * One D channel HDLC controller - Maskable address recognition - Transparent (HDLC) mode - FIFO buffer (2 * 64) * Two B channel HDLC controller - Maskable address recognition - Transparent (HDLC) mode - FIFO buffer (2 * 128) * Various B channel switching capabilities and PCM intercom * Two PCM CODEC interfaces for speech and POTS application * GCI interface connects with other peripheral device in TE, LT-S and LT-T mode. * Multi-frame synchronization * 8-bits Intel mode or Motorola mode interface accesses B channel and Command/Indication channel. * The timing clock recovery depends on operating mode. * DPLL circuit designed in chip for NT2 application. * Four kind of the extended interrupt trigger mode. * Two kind of output interrupt polarity selection can be programmed.(Positive level and negative Level) * Added reset signal to reset other chip. * Loop back function for testing. * Layer1 Activate Indication Output can be connected to LED * Two of programmable timer * 3.3 Volt power supply * 3.3 Volt output; Maximum Input is 5.0Volt * Advanced CMOS technology * 64 pin LQFP or 68 pin PLCC package
9
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
3. PIN CONFIGURATIONS
C P C
C N C
S X 2
S X 1
V D D A
S R 2
S R 1
V S S A
X T A L 1
X T A L 2
T O U T 2
C K L T
V D D
V S S
F S C O
D C L O
VDD VSS C16.384
48 49 50
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33 32
M1
31 30 29 28 27
M0 AD0 AD1 AD2
51 52 53 54 55 56 57
MBS
PFCK2 PFCK1
AD3 AD4 AD5 AD6 AD7
PBCK
PTXD PRXD
ISDN S/T Interface Access Controller W6691
26 25 24 23 22 21
VDD VSS DU DD
58 59 60 61 62 63 64 1
VDD VSS
20 19
WR#
FSC DCL INT#
18 17 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
C P
T E S P T
R S T #
M B I T
V D D
V S S
A C T L 1 S
O S C 7 6 8
R D #
A L E
C S #
Fig.3.1 W6691 Pin Configuration - Intel Bus Mode
10
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
Pin Configurations, continued
C P C
C N C
S X 2
S X 1
V D D A
S R 2
S R 1
V S S A
X T A L 1
X T A L 2
T O U T 2
C K L T
V D D
V S S
F S C O
D C L O
VDD VSS C16.384
48 49 50
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33 32
M1
31 30
M0 D0 D1 D2
51 52
MBS
29 28
PFCK2 PFCK1
53 54
27
D3 D4 D5
PBCK
55 56 57
PTXD PRXD
ISDN S/T Interface Access Controller W6691
26 25 24 23 22 21
D6 D7
VDD VSS DU DD
58 59 60
VDD VSS
61 62 63 64 1
20 19
DS#
FSC DCL INT#
A0
18 17 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
A1 A2
C P
T E S P T
R S T #
M B I T
V D D
V S S
A C T L 1 S
O S C 7 6 8
R W
A L E
C S #
A 7
A 6
A 5
A 4
A 3
11
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
Fig.3.2 W6691 Pin Configuration - Motorola Bus Mode
12
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
4. PIN DESCRIPTION
TABLE 4.1 W6691 PIN DESCRIPTIONS Note: The suffix "#" indicates an active LOW signal. In Intel or Motorola bus mode, all unspecified pins must be left unconnected. Pin Name Pin Number Type Functions
Intel Bus Mode (Enabled when MBS=HIGH) MBS AD7-0 52 23, 24, 25, 26, 27, 28, 29, 30 11 10 9 22 3 64 I I/O Microprocessor bus selector (MBS). This pin must be pulled to HIGH. Multiplexed address and data bus. During the address phase, AD7-0 contains 8-bit physical address. During the data phase, AD7-AD0 contains data. Chip select. Address Latch Enable. Used to latch addresses. Read. Write. Reset. Interrupt. The interrupt trigger level can be programmable by ACTL2:INTOL. It provides two types of interrupt trigger level including low level and high level.
CS# ALE RD# WR# RST# INT#
I I I I I O
Motorola Bus Mode (Enabled when MBS=LOW) MBS D7-D0 A7-A0 CS# DS# RW RST# INT# 52 23, 24, 25, 26, 27, 28, 29, 30 12, 13, 14, 15, 16, 17, 18, 19 11 20 9 3 64 I I I I O Chip select. Data strobe. Read/Write identify. HIGH is for read and LOW is for write. Reset. Interrupt. The interrupt trigger level can be programmable by ACTL2:INTOL. It provides two types of interrupt trigger level including low level and high level. I I/O I Microprocessor bus selector (MBS). This pin must be pulled to LOW. Data bus. Address bus.
13
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
DCL
63
I/O
GCI Bus GCI Bus Data Clock : the frequency is twice data rate TE mode : 1.536 MHz. LT-T/LT-S mode : 4.096 MHz. NT mode : 512KHz It needs external pull-up.
FSC DD DU CP/BCL FSCO DCLO C16.384
62 61 60 1 34 33 51
I/O I/O I/O O O O I
GCI Bus Frame Synchronization Clock: 8KHz. It needs external pull-up. GCI Bus Data Downstream. It needs external pull-up. GCI Bus Data Upstream. It needs external pull-up. CP - output 512KHz in LT-T mode. BCL - output 768KHz in TE mode. Output FSCO clock 8KHz for LT-T/LT-S mode(NT2 application). It is synchronous to DCLO. Output DPLL clock 4.096MHz for LT-T/LT-S application). It is synchronous to T interface clock. mode(NT2
16.384 MHz clock input for DPLL circuit to generate FSCO and DCLO.
PFCK1 PFCK2 PBCK PTXD
54 53 55 56
PCM Interface( It is only used in TE Mode) O PCM port1 frame synchronization signal, with 8 KHz repetition rate and 8 bits pulse width. O O O PCM port2 frame synchronization signal, with 8 KHz repetition rate and 8 bits pulse width. PCM bit synchronization clock of 1.536 MHz. PCM transmit bus data output. A maximum of two channels with 64 Kbits/s data rate can be multiplexed on this signal. It needs external pull-up. PCM bus receive data input. A maximum of two channels with 64 Kbits/s data rate can be multiplexed on this signal. It needs external pull-up.
PRXD
57
I
SR1 SR2 SX1
42 43 45
ISDN Signals and External Crystal I S/T bus receiver input (negative). I O S/T bus receiver input (positive). S/T bus transmitter output (positive). Publication Release Date: Sep 2001 Revision 1.1
14
Preliminary W6691
SX2 XTAL1 XTAL2 TESTP TOUT2
46 40 41 2 38
O I O I O
S/T bus transmitter output (negative). Crystal or Oscillator 7.68MHz100PPM. clock input. The clock frequency:
Crystal clock output. Left unconnected when using oscillator. Functional Test Used to enable normal operation (1) or enter test mode (0). Timer2 Expiration Output Timer 2 output. A square wave with 50 % duty cycle, 1~63 ms period can be generated. Clock Pulse It provides output 7.68MHz clock. It does not synchronize to S interface. Operating Mode
OSC768
8
O
M0 M1 ACTL1S
31 32 7
I
Setting of operating mode
I Setting of operating mode Peripheral Input Port and Output Port O Activate Layer1 Status.This pin can be pulled to low level or programmed by microprocessor by ACTL2 : ACTL1S when Layer1 operates in activate. ACTL2 : ACTL1S: 0: When Layer 1 operates in activate state, ACTL1S pin is pulled to low level. In contrast, if Layer 1 operates in deactivate state, ACTL1S pin is driven to high level. 1: The ACTL1 output level is programmed by microprocessor (ACTL2 : ACLT1S). Power and Ground
VDD VDDA VSS VSSA
5, 22, 36, 49, 58 44 6, 21, 35, 50, 59 41
I I I I
Digital Power Supply (3V5%). Analog Power Supply (3V5%). Digital Ground. Analog Ground.
15
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
5. SYSTEM DIAGRAM AND APPLICATIONS
NT 4-wire S/T Transfomer Module Protection Circuit
Phone
W6691
FAX POTS Circuit PCM CODEC X2
S Interface
Microprocessor
Fig.5.1 ISDN TA with Two POTS Connections
16
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
7.68MHz
7.68MHz
TE W6691
S interface
LT-S GCI W6691
GCI TSI
LT-T W6691
T interface
8KHz(FSC)
UP
Clock Generator
512KHz 4.096MHz(DCL)
Fig.5.2 ISDN PAXB Application
17
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
6. BLOCK DIAGRAM
The block diagram of W6691 is shown in Figure 6.1
2B+D 2B+D 4-wire S/T Line Transceiver & AMI/BIN Conversion GCI Bus Slip Buffer
B-channel Switching
2B+D GCI Bus GCI Circuit
D HDLC
Controller
B1 HDLC
Controller
B2 HDLC
Controller
PCM Port
PCM CODEC
FIFO
FIFO
FIFO
Crystal/Oscillator (7.68 MHz)
DPLL1 and Timing Generator
POTS circuit
Microprocessor Interface Circuit I/O Control DPLL2
FSCO DCLO C16.384
Fig.6.1 W6691 Functional Block Diagram
18
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
7. FUNCTIONAL DESCRIPTIONS
7.1.1 Main Block Functions
The functional block diagram of W6691 is shown in Fig.6.1. The main function blocks are: - Layer 1 function according to ITU-T I.430 - B channel switching - GCI bus interface - PCM port (x 2) and internal B channel switching - D channel HDLC controller - DPLL 2 circiut generating 4.096 MHz clock for NT2 application
The layer 1 function includes: - S/T bus transmitter/receiver - Timing recovery using Digital Phase Locked Loop (DPLL) circuit - Layer 1 activation/deactivation - D channel access control - Frame alignment - Multi-frame synchronization - Test functions
The serial interface bus performs the multiplexing/demultiplexing of D and 2B channels.
The B channel switching determines the connection between layer 1/GCI, layer 2 and PCM.
GCI bus is for TE, LT-S and LT-T
mode applications.
The PCM port provides two 64 kbps clear channels to connect to PCM codec chips.
The D channel HDLC controller performs the LAPD (Link Access Procedure on the D channel) protocol according to ITU-T I.441/Q.921 recommendation.
19
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
The peripheral simple I/O is used to control other peripheral devices such as CODEC, SLIC, DTMF detector, LEDs.
7.1.2 Interface and Operating Modes
The W6691 can be configured for the following application: l l l ISDN terminals --- TE mode (M1=0 & M0=0)
ISDN subscriber line termination --- LT-S mode (M1=1 & M0=0) ISDN trunk line termination ---LT-T mode (M1=0 & M0=1)
TE , LT-S and LT-T modes are configured by setting mode pins (M1 and M0).
7.2.1 S/T Interface Transmitter/Receiver
According to ITU-T I.430, pseudo-ternary code with 100% pulse width is used in both directions of transmission on the S/T interface. The binary "1" is represented by no line signal (zero volt), whereas a binary "0" is represented by a positive or negative pulse. Data transmissions on the S/T interface are arranged as frame structures. The frame is 250 s long and consists of 48 bits, which corresponds to a 192 kbit/s line rate. Each frame carries two octets of B1 channel, two octets of B2 channel and four D channel bits. Therefore, the 2B+D data rate is 144 kbit/s. The frame structure is shown in Fig.7.1. The frame begin is marked by a framing bit, which is followed by a DC balancing bit. The first binary "0" following the framing bit balancing bit is of the same polarity as the framing bit balancing bit, and subsequent binary zeros must alternate in polarity.
20
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
NT TE
DL F L 0 1 0
48 bits in 250 s
B 1 B 1 B 1 B 1 B 1 B 1 B 1 B 1 E D A FA N B 2 B 2 B 2 B 2 B 2 B 2 B 2 B 2 E D M B 1 B 1 B 1 B 1 B 1 B 1 B 1 B 1 E D S B 2 B 2 B 2 B 2 B 2 B 2 B 2 B 2 E D
2 bits offset
TE NT
DLF 0 1 0 L B 1 B 1 B 1 B 1 B 1 B 1 B 1 B 1 L D L FA L B 2 B 2 B 2 B 2 B 2 B 2 B 2 B 2 L D L B 1 B 1 B 1 B 1 B 1 B 1 B 1 B 1 L D L B2 B2 B2 B2 B2 B2 B2 B2 L
F = Framing bit L = DC balancing bit D = D channel bit E = D channel echo bit FA = Auxiliary framing bit or Q-bit
N = Bit set to a binary value N=FA B1 = Bit within B channel 1 B2 = Bit within B channel 2 A = Bit used for activation S = Bit used for S channel M = Multiframe bit Fig.7.1 Frame structure at S/T interface
There are three wiring configurations according to I.430 : point-to-point, short passive bus and extended passive bus. They are shown in Fig.7.2.
21
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
W6691 TE
1000 m TR (a) Point-to-point configuration TR NT
100~200 m TR 10m W6691 TE1 (b) Short passive bus configuration ..... TR NT
TE8
100~200 m 50m TR 10m W6691 TE1 TR NT
.....
TE8 TR : Terminating Resistor
(c) Extended passive bus configuration
Fig.7.2 W6691 wiring configuration in TE applications
The transmitter and receiver are implemented by differential circuits to increase signal to noise ratio (SNR). The nominal differential line pulse amplitude at 100 termination is 750 mV, zero to peak. Transformers with 1:1 turn ration are needed at transmitter and receiver for voltage level translation and DC isolation. To meet the electrical characteristic requirements in I.430, some additional circuits are needed. At the transmitter side, the external resistors (5 to 10 ) are used to adjust the output pulse amplitude and to meet the transmitter active impedance ( 20 ) when transmitting binary zeros. At the receiver side, the 1.8 k
22
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
resistors protect the device inputs, while the 10 k resistors (1.8 k +8.2 k ) limit the peak current in impedance tests. The diode bridge is used for overvoltage protection.
5-10 SX1
2:1
GND
100 VDD
5-10 SX2
Fig.7.3 External Transmitter Circuitry
23
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
SR1
1.8k
8.2k
2:1
GND
VDD
100
SR2
1.8k
8.2k
Fig.7.4 External Receiver Circuitry
After hardware reset, the receiver may enter power down state in order to save power consumption. In this state, the internal clocks are turned off, but the analog level detector is still active to detect signal coming from the S interface. The power down state is left either by non-INFO 0 signal from S interface or C/I command from microprocessor.
24
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
7.2.2 Receiver Clock Recovery And Timing Generation
1) TE mode A Digital Phase Locked Loop (DPLL) circuit is used to derive the receiving clock from the received data stream in TE mode application. This DPLL uses a 7.68 MHz clock as reference. According to I.430, the transmit clock is normally delayed by 2 bit time from the receive clock. The "total phase deviation from input to output" is -7% to +15% of a bit period. In some cases, delay compensation may be needed to meet this requirement (see OPS1-0 bits in D_CTL register).
2) LT-T mode In LT-T mode application, A Digital Phase Locked Loop (DPLL) circuit is also used to derive the receiving clock(192KHz) from the received data stream.W6691 generates a CP (Clock Pulse ) derived from the 192KHz receiving clock with DPLL. CP clock rate is 512KHz or 1536KHz. If CP clock is used to synchronize NT2 clock, W6691 provide a slip buffer to avoid slipping between DCL and CP.
3) LT-S mode In LT-S modes, A Digital Phase Locked Loop (DPLL) circuit is used to derive the receiving clock from the received data stream. This DPLL uses a 7.68 MHz clock as reference.
TABLE 7.1 OUTPUT PHASE DELAY COMPENSATION TABLE
OPS1 0 0 1 1 OPS0 0 1 0 1 Effect No phase delay compensation Phase delay compensation 260 ns Phase delay compensation 520 ns Phase delay compensation 1040 ns
W6691 does not need RC filter on receiver side, therefore zero delay compensation is selected normally. This is also the default setting.
The PCM output clocks (PFCK1-2, PBCK) are locked to the S-interface timing with jitter. See the electrical specification.
25
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
7.2.3 Layer 1 Activation/Deactivation
The layer 1 activation/deactivation procedures are implemented by a finite state machine according to TE/LT-T/LT-S mode. The state transitions are triggered by signals received at S interface or commands issued from microprocessor. The state outputs signals to S interface and indication to microprocessor. The CIX register is used by microprocessor to issue command, and the CIR register is used by microprocessor to receive indication. Some commands are used for special purposes. They are "layer 1 reset", "analog loopback", "send continuous zeros" and "send single zero".
7.2.3.1 States Descriptions And Command/Indication Codes in TE/LT-T
F3 Deactivated without clock This is the "deactivated" state of ITU-T I.430. The receive line awake unit is active except during a hardware reset pulse. After reset, once the indication "1111" has been read out, internal clocks will turn off and stay at this state if INFO 0 is received on the S line. The turn off time is approximate 93 ms. The ECK command must be issued to activate the clocks.
F3 Deactivated with clock This state is identical to "F3 Deactivated without clock" except the internal clocks are enabled. The state is entered by the ECK command. The clocks are enabled approximately 0.5 ms to 4 ms after the ECK command, depending on the crystal capacitances. (It is about 0.5 ms for 12pF to 33pF capacitance).
F3 Awaiting Deactivation The W6691 enters this state after receiving INFO 0 (in states F5 to F8) for 16ms (64 frames). This time constant prevents spurious effect on S interface. Any non-INFO 0 signal on the S interface causes transition to "F5 Identifying Input" state. If this transition does not occur in a specific time (500 - 1000 ms), the microprocessor may issue DRC or ECK command to deactivate layer 1.
F4 Awaiting Signal This state is reached when an activate request command has been received. In this state, the layer 1 transmits INFO1 and INFO 0 is received from the S interface. The software starts timer T3 of I.430 when issuing activate request command. The software deactivates layer 1 if no signal other than INFO 0 has been received on S interface before expiration of T3.
26
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
F5 Identifying Input After the receipt of any non-INFO 0 signal from NT, the W6691 ceases to transmit INFO 1 and awaits identification of INFO 2 or INFO 4. This state is reached at most 50 s after a signal different from INFO 0 is present at the receiver of the S interface.
F6 Synchronized When W6691 receives an activation signal (INFO 2), it responds with INFO 3 and waits for normal frames (INFO 4). This state is reached at most 6 ms after an INFO 2 arrives at the S interface (in case the clocks were disabled in "F3 Deactivated without clock").
F7 Activated This is the normal active state with the layer 1 protocol activated in both directions. From state "F6 Synchronized" , state F7 is reached at most 0.5 ms after reception of INFO 4. From state "F3 Deactivated without clock" with the clocks disabled, state F7 is reached at most 6 ms after the W6691 is directly activated by INFO 4.
F8 Lost Framing This is the state where the W6691 has lost frame synchronization and is awaiting resynchronization by INFO 2 or INFO 4 or deactivation by INFO 0.
Special States: Analog Loop Initiated On Enable Analog Loop command, INFO 3 is sent by the line transmitter internally to the line receiver (INFO 0 is sent to the line). The receiver is not yet synchronized.
Analog Loop Activated The receiver is synchronized on INFO 3 which is looped back internally from the transmitter. The indication 'TI" or "ATI" is sent depending on whether or not a signal different from INFO 0 is detected on the S interface.
Send Continuous Pulses A 96 kHz continuous pulse with alternating polarities is sent.
27
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
Send Single Pulses A 2 KHz , isolated pulse with alternating polarities is sent.
Layer 1 Reset A layer 1 reset command forces the transmission of INFO 0 and disables the S line awake detector. Thus activation from NT is not possible. There is no indication in reset state. The reset state can be left only with ECK command.
TABLE 7.2 LAYER 1 COMMAND CODES
Command Enable clock Layer 1 reset Send continuous pulses Send single pulses Activate request at priority 8 Symbol Code ECK RST SCP SSP AR8 0000 0001 0100 0010 1000 1001 1010 1111 Description Enable internal clocks Layer 1 reset Send continuous pulses at 96 kHz Send isolated pulses at 2 kHz Activate layer 1 and set D channel priority level to 8 Activate layer 1 and set D channel priority to 10 Enable analog loopback Deactivate layer 1 and disable internal clocks
Activate request at priority 10 AR10 Enable analog loopback Deactivate layer 1 EAL DRC
TABLE 7.3 LAYER 1 INDICATION CODES
Indication Clock Enabled Deactivate downstream Level detected Symbol Code CE request DRD LD 0111 0000 0100 1000 1010 1011 1100 Descriptions Internal clocks are enabled Deactivation request by S interface, i.e INFO 0 received Signal received, receiver not synchronous INFO 2 received Analog loopback activated or continuous zeros or single zeros transmitted Level detected during test function INFO 4 received, D channel priority is 8 or 9
Activate request downstream ARD Test indication Awake test indication TI ATI
Activate indication with priority AI8 class 1
28
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
Activate indication with priority AI10 class 2 Clock disabled CD
1101 1111
INFO 4 received, D channel priority is 10 or 11 Layer 1 deactivated, internal clocks are disabled
7.2.3.2 State Transition Diagrams in TE/LT-T
The followings are the state transition diagrams, which implement the activation/deactivation state matrix in I.430 (TABLE 5/I.430). The "command" and "s receive" entries in each state octagon keep the state, the "indication" and "s transmit" entries in each state octagon are the state outputs. For example, at "F3 Deactivated with clock" state, the layer 1 will stay at this state if the command is "ECK" and the INFO 0 is received on S interface. At this state, it provides "CE" indication to the microprocessor and transmits INFO 0 on S interface. The "AR8/10" command causes transition to F4 and non-INFO 0 signal causes transition to F5. Note that the command code writtern by the microprocessor in CIX register and indication code written by layer 1 in CIR register are transmitted repeatedly until a new code is written.
29
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
F4 Await. Signal AR8/10 i0 CE i1 ^i03) F5 Ident. Input i4 ^RST1) any
2)
DRC ECK F3 Deact w/o clk DRC ^i03) i0 i0 i0 ECK AR8/10 ^i03) i0 ECK DRC F3 Await. Deact. AR8/10 i0 DRD i0 DRC CD
AR8/10
LD i0 i2
F3 Deact with clk ECK i0 CE i0
Lost Framing
F6 Synchronized ^RST i2 i4
1)
ARD i3 i2
^i03) F7 Activated AR8/10 i4 Lost Framing i2 F8 Lost Framing ^RST1) any
2)
AI8/10 i3
i0
i4
Notation:
State i0 com s receive Ind s trans.
LD i0
Note : 1. "^RST" means "NOT layer 1 reset command". 2. "Any" means any signal other than i0, which has not yet been determined. 3. "^i0" means any signal other than i0 Fig.7.5 layer 1 activation/deactivation state diagram - normal mode
Fig.7.5 layer 1 activation/deaction state diagram - TE/LT-T normal mode Publication Release Date: Sep 2001 Revision 1.1
30
Preliminary W6691
Reset RST RST Ignored None i0 ECK EAL
Ana. Loop Init. EAL Ignored CE i35) Y2)
i35)
^i35)
Ana. Loop Act. EAL Ignored SCP Ignored Y2) TI ic3) TI/ATI i35) Y2)
Send Cont. Pulses SCP
Notation:
Send Sing. Pulses SSP SSP Ignored Y2) TI is4) com s receive Ind s trans. State
Note : 1. RST can be issued at any state, while SCP, SCZ and EAL can be issued only at F3 or F7. 2. Y is one of the commands : ECK, DRC, RST. 3. Continuous pulses at 96 kHz. 4. Isolated pulses at 2 kHz. 5. The INFO 3 is transmitted internally only.
Fig.7.6 layer 1 activation/deactivation state diagram - TE/LT-T SPECIAL mode
31
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
7.2.4 Layer 1 Activation /Deactivation in LT-S Mode
7.2.4.1 States Descriptions and Command/Indication Codes in LT-S Mode G1 Deactivated No any signal is detected on S interface and No any activation command is received in the C/I channel. G2 Pending Activation IF INFO1 IS DETECTED ON S INTERFACE OR AN ARD COMMAND IS RECEIVED FROM LAYER2 ,THE W6691 START TO TRANSMIT INFO2. W6691 IS WAITING FOR RECEIVING INFO3 FROM S INTERFACE. INFO2 IS SENT FROM W6691. G3 ACTIVATED W6691 RECEIVES INFO3 ,THEN, IT ENTERS G3 ACTIVATED STATE. THE INFO4 IS TRANSMITTED IN THIS STATE. WHEN THE SYNCHRONIZATION IS LOST, W6691 SWITCH TO TRANSMIT INFO2 INSTEAD OF INFO4 AND WAIT FOR RECEIVING INFO3 TO GET SYNCHRONIZATION AGAIN. G4 PENDING DEACTIVATION This state is requested by DDR (deactivate request). If INFO0 is received during 16ms or an internal timer2 expiration, the layer1 responses DRIU indication for Layer2. G4 Await Deactivated The W6691 stays in this state and waits for DRIU report from layer2. If W6691 receives DRA command from layer2, it enters G1 state. Test Mode Continuous Pulses Continuous alternating 96 KHz pulses are sent. Test Mode Single Pulses
32
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
Single alternating 2KHz pulses are sent.
TABLE 7.4 LAYER 1 COMMAND CODES
Command Deactivate down request Send continuous pulses Send single pulses Symbol Code DDR SCP SSP 0000 0011 0010 1000 1111 0001 Description Deactive Layer1 and disable internal clocks Send continuous pulses at 96 kHz Send isolated pulses at 2 kHz Request Layer1 activate Info2/Info4 sent Layer2 reponses Deactivate acknowledgement to make sure Layer1 can be deativate Initialize to G4 or G1 state
Activate request downstream ARD Deactivate request assure RESET DRA RST
TABLE 7.5 LAYER 1 INDICATION CODES
Indication Signal synchronize Activate request Indication upstream Activate indication upstream Symbol Code SSYU ARIU AIU 0100 1000 1100 1111 Descriptions Received signal is not again Info3 and try to re-synchronize
the INFO 1 signal detected is responsed to Layer2. Synchronous receiver 1. Timer2 expired 2. info 0 received during 25ms after deactivation request command
Deactivate request indication DRIU upstream
RESET Indication Test Indication
RSTI TI
0001 0000
Reset state indication
33
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
7.2.4.2 States Transition Diagram in LT-S Mode
Reset RST RES i0/i1/i3 REST i0 ARD
G1 Deact DDR
DDR i0
DRIU i0
ARD or i1
G2 Pending Act DDR DDR/ARD Test Mode I0/i1 SCP/SSP SCP/SSP i0/i1/i3 TI i3 IS G3 Activated DDR/ARD AIU i4 DDR i2 ARIU
i3 IS: continuous 96 KHz pulse signal or single 2 KHz signal pulse ^i3 i3
Lost of Frame DDR
DDR/ARD ^i3
SSYN i2
DDR G4 pending deact ARD DDR i0/i1/i3 AIU i0 i0 during 25ms or T2 expire
G4 Await deact ARD DDR i0/i3 DRIU i0
DRA
Fig.7.7 layer 1 activation/deactivation state diagram in LT-S Publication Release Date: Sep 2001 Revision 1.1
34
Preliminary W6691
7.2.5 D Channel Access Control
The D channel access control includes collision detection and priority management. The collision detection is always enabled. The priority management procedure as specified in ITU-T I.430 is fully implemented in W6691.
A collision is detected if the transmitted D bit and the received echo bit do not match. When this occurs, D channel transmission is immediately stopped, and the echo channel is monitored to attempt the next D channel access.
There are two priority classes: class 1 and class 2. Within each class, there are normal and lower priority levels.
TABLE 7.8 D PRIORITY CLASSES
Normal level Priority class 1 Priority class 2 8 10 Lower level 9 11
The selection of priority class is via the AR8/AR10 command. The following table summarizes the commands/indications used for setting the priority classes:
TABLE 7.9 D PRIORITY COMMANDS/INDICATIONS
Command Activate request, set priority 8 Activate request, set priority 10 Indication Symbol Code AR8 AR10 Abbr. 1100 1101 1000 1001 Remarks Activation command, set D channel priority to 8 Activation command, set D channel priority to 10 Remarks Info 4 received, D channel priority is 8 or 9 Info 4 received, D channel priority is 10 or 11
Activate indication with priority 8 AI8 Activate indication with priority 10 AI10
35
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
7.2.6 Frame Alignment
The following sections describe the behavior of W6691 in respect to the CTS-2 conformance test procedures for frame alignment. Please refer to ETSI-TM3 Appendix B1 for detailed descriptions.
7.2.6.1 FAinfA_1fr
This test checks if TE does not lose frame alignment on receipt of one bad frame. The pattern for the bad frame is defined as IX_96 kHz. This pattern consists of alternating pulses at 96 kHz during the whole frame.
Device W6691
Settings None
Result Pass
7.2.6.2 FAinfB_1fr
This test checks if TE does not lose frame alignment on receipt of one IX_I4noflag frame which has no framing and balancing bit.
Device W6691
Settings None
Result Pass
7.2.6.3 FAinfD_1fr
This test checks if TE does not lose frame alignment on receipt of one IX-I4viol16 frame. The IX_I4viol16 frame remains at binary "1" until the first B2 bit which is bit position 16. The pulse sequences are: Framing bit, balancing bit, B2 bit, M bit, S bit, balancing bit. The TE should reflect the received FA bit (FA="1") in the transmitted frame.
Device W6691
Settings None
Result Pass
36
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
7.2.7.4 FAinfA_kfr
This is to test the number k of IX_96 kHz frames necessary for loss of frame alignment.
Device W6691 7.2.6.5 FAinfB_kfr
Settings k =2
Result Pass
This is to test the number k of IX_I4noflag frames necessary for loss of frame alignment.
Device W6691 7.2.6.6 FAinfD_kfr
Settings k =2
Result Pass
This is to test the number k of IX_I4noflag frames necessary for loss of frame alignment.
Device W6691
Settings k=2
Result Pass
7.2.6.7 Faregain
This is to test the number m of good frames necessary for regain of frame alignment. The TE regains frame alignment at m+1 frame.
The W6691 achieves synchronization after 5 frames, i.e m=4.
Device W6691
Settings m=4
Result Pass
37
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
7.2.7Multiframe Synchronization
As specified by ITU-T I.430, the Q bit is transmitted from TE to NT in the position normally occupied by the auxiliary framing bit (FA) in one frame out of 5, whereas the S bit is transmitted from NT to TE. The S and Q bit positions and multiframe structure are shown in Table 7.10.
The functions provided by W6691 are:
-
Multiframe synchronization: Synchronization is achived when the M bit pattern has been correctly received during 20 consecutive frames starting from frame number 1. Note: Criterion for multiframe synchronization is not defined in I.430 Recommendation.
-
S bits receive and detect: When synchronization is achieved, the four received S bits in frames 1,6,11,16 are stored as S1 to S4 in the SQR register respectively. A change in the recived four bits (S1-4) is indicated by an interrupt. Multiframe synchronization monitoring: Multiframe synchronization is constantly monitored. The synchronization state is indicated by the MSYN bit in the SQR register. Q bits transmit and FA mirroring: When multiframe synchronization is achived, the four bits Q1-4 stored in the SQXR register are transmitted as the four Q bits (FA-bit position) in frames 1,6,11 and 16. Otherwise the FA bit transmitted is a mirror of the received FA-bit. At loss of synchronization, the mirroring is resumed at the next FA-bit. The multiframe synchronization can be disabled by setting MFD bit in the D_MODE register. According to I.430 Recommendation, the S/Q channel can be used as operation and maintenance signalling channel. At transmitter, a S/Q code for a message shall be repeated at least six times or as many as necessary to obtain the desired response. At receiver, a message shall be considered received only when the proper codes is received three consecutive times.
-
-
38
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
TABLE 7.10 MULTIFRAME STRUCTURE IN S/T INTERFACE
Frame Number NT-to-TE FA-bit position 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 2 etc. ONE ZERO ZERO ZERO ZERO ONE ZERO ZERO ZERO ZERO ONE ZERO ZERO ZERO ZERO ONE ZERO ZERO ZERO ZERO ONE ZERO NT-to-TE M bit ONE ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ONE ZERO NT-to-TE S bit S1 ZERO ZERO ZERO ZERO S2 ZERO ZERO ZERO ZERO S3 ZERO ZERO ZERO ZERO S4 ZERO ZERO ZERO ZERO S1 ZERO TE-to-NT FA-bit position Q1 ZERO ZERO ZERO ZERO Q2 ZERO ZERO ZERO ZERO Q3 ZERO ZERO ZERO ZERO Q4 ZERO ZERO ZERO ZERO Q1 ZERO
39
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
7.2.8Test Functions
The W6691 provides loop and test functions as follows:
-
Digital loop via DLP bit in D_MODE register: In the layer 2 block, the transmitted 2B+D data are internally looped (from HDLC transmitter to HDLC receiver), and in the PCM ports, the transmitted B channels are internally looped (from PCM inputs to PCM outputs). The clock timings are generated internally and are independent of the S bus timing. This loop function is used for test of PCM and higher layer functions, excluding layer 1. After hardware reset, W6691 will power down if S bus is not connected or if there is no signal on the S bus. In this case, the C/I command ECK must be issued to power up the chip. Analog loop via the C/I command EAL: The analog S interface transmitter is internally connected to the S interface receiver. When the receiver has synchronized itself to the internal INFO 3 signal, the message "Test Indication" or "Awake Test Indication" is delivered to the CIR register. No signal is transmitted over the S interface. In this mode, the S interface awake detector is enabled. Therefore if a level (INFO 2/ INFO 4) is detected on the S interface, this will be reported by the "Awake Test Indication (ATI)" indication.
-
-
Remote loopback via RLP bit in D_MODE register: The digital 2B data received from the S interface receiver is loopbacked to the S interface transmitter. The D channel is not looped. When RLP is enabled, layer 1 D channel is connected to HDLC port and DLP cannot be enabled. Transmission of special test signals via layer 1 command: * Send Single Pulses (SSP): To send isolated single pulses of alternating polarity, with pulse width of one bit time, 250 us apart, with a repetition frequency of 2 kHz. * Send Continuous Pulses (SCP): To send continuous pulses of alternating polarity, with pulse width of bit time. The repetition frequency is 96 kHz.
-
40
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
250 us
(a) Single pulses
(b) Continuous pulses
Fig.7.9 SSP and SCP test signals
7.3 B Channel Switching
W6691 provides five kinds of B channel switching function. 1. PCM and GCI bus Switch (SFCTL : PGSWH) : It determines the CODEC interface is to be operated in B channel. 1: PCM bus is selected to operate with CODEC. 0: GCI bus is selected to operate with CODEC. 2. PCM Remote Loop Back (SFCTL : PCRLP) Setting this bit activates the PCM channel remote loopback function. The transmitted PCM data to PCM channel are looped to received PCM channel. 3. PXC PCM Cross-connect (SCFT : PXC) This bit determines whether or not the PCM ports are cross-connected with the B channel ports. The setting of PXC is independent of the BSW1-0 bits. Publication Release Date: Sep 2001 Revision 1.1
41
Preliminary W6691
PXC 0 1
Connection PCM1 B1, PCM2 B2 PCM1 B2, PCM2 B1
4. B2SW1 / B2SW0 B2 channel Switch These two bits determine B2 channel switch among PCM port , Layer1/GCI and Layer2. 00: Select B2 channel switch between Layer2 and Layer1/GCI. 01: Select B2 channel switch between Layer1/GCI and PCM. 10: Select B2 channel switch between PCM and Layer2. 5. B1SW1 / B1SW0 B1 channel Switch
These two bits determine B1 channel switch among PCM port , Layer1/GCI and Layer2. 00: Select B1 channel switch between Layer2 and Layer1/GCI. 01: Select B1 channel switch between Layer1/GCI and PCM. 10: Select B1 channel switch between PCM and Layer2.
7.4 PCM Port
There are two PCM ports in W6691. Data is valid when respective PFCK is HIGH. The frame synchronization clocks (PFCK1-2) are 8 kHz and the bit synchronization clock (PBCK) is 1.536 MHz.
7.5 D Channel HDLC Controller
There are two HDLC protocols that are used for ISDN layer 2 functions : LAPD and LAPB. Their frame formats are shown below.
42
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
LAPB modulo 8 :
flag
address
control
information (0 or N octets)
FCS (2 octets)
flag (1 octet)
(1 octet) (1octet) (1octet)
Control field bits I frame S frame U frame
7
6 N(R) N(R)
5
4 P P/F
3
2 N(S)
1
0 0
S M
S M
0 1
1 1
M
M
M
P/F
LAPB modulo 128 :
flag
address
control (1 or 2 octets)
information (0 or N octets)
FCS (2 octets)
flag (1 octet)
(1 octet) (1octet)
1st octet Control field bits I frame S frame U frame X M X M X M 7 6 5 4 N(S) X P/F S M S M 0 1 3 2 1 0 0 1 1 7 6 5
2nd octet 4 N(R) N(R) 3 2 1 0 P P/F
LAPD : modulo 128 only
flag (1 octet)
address (2 octets)
control (2 octets)
information (0 or N octets)
FCS (2 octets)
flag (1 octet)
43
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
1st octet Control field bits I frame S frame U frame 0 M 0 M 0 M 7 6 5 4 N(S) 0 P/F S M S M 0 1 3 2 1 0 0 1 1 7 6 5
2nd octet 4 N(R) N(R) 3 2 1 0 P/F P/F
7.5.1 D Channel Message Transfer Modes
The D channel HDLC controller operates in transparent mode. Chracteristics:
-
Receive frame address recognition Address comparison maskable bit-by-bit Flag generation / deletion Zero bit insertion/ deletion Frame Check Sequence (FCS) generation/ check with CRC_ITU-T
16 12 5
Note. The LAPD protocol uses the CRC_ITU-T for Frame Check Sequence. The polynominal is X + 1.
+X
+X
For address recognition, the W6691 provides four programmable registers for individual SAPI and TEI values, SAP1-2 and TEI1-2, plus two fixed values for group SAPI and TEI, SAPG and TEIG. The SAPG equals 02H(C/R=1) or 00H(C/R=0) which corresponds to SAPI = 0. The TEIG equals FFH which corresponds to TEI = st nd 127. Incoming frame with 1 address octet= (SAP1 or SAP2 or SAPG) and 2 address octet= (TEI1 or TEI2 or TEIG) will be stored in the receive FIFO, with flag and FCS fields being discarded and stuffed bits being removed.
44
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
The valid address combinations are :
-
SAP1 and TEI1 SAP1 and TEI=127 SAP2 and TEI2 SAP2 and TEI=127 SAPI=0 and TEI1 SAPI=0 and TEI2 SAPI=0 and TEI=127
The receive frame address comparisons can be disabled (masked) per bit basis by setting the D_SAM and D_TAM registers, but comparisons with the SAPG or TEIG cannot be disabled.
7.5.2 Reception of Frames in D Channel
A 128-byte FIFO is provided in the receive direction. The data movement is handled by interrupts.
There are two interrupt sources: Receive Message Ready (D_RMR) and Receive Message End (D_RME). The D_RMR interrupt indicates that at least 64 bytes of data have been received and the message/ frame is not ended. Upon D_RMR interrupt, the microprocessor reads out 32 bytes of data from the FIFO. The D_RME interrupt indicates the last segment of a message or a message with length 32 bytes has been received. The length of data is less than or equal to 32 and is specified in the D_RBCL register.
If the length of the last segment of message is 32, only D_RME interrupt is generated and the RBC4-0 bits in D_RBCL register are 000000B.
The data between the opening flag and the CRC field are stored in D_RFIFO. For LAPD frame, this includes the address field, control field and information field.
When a D_RMR or D_RME interrupt is generated, the micro-processor must read out the data from D_RFIFO and issues the Receive Message Acknowledgement command (D_CMDR: RACK bit) to explicitly
45
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
acknowledge the interrupt. The microprocessor must handle the interrupt before more than 32 bytes of data are received. This corresponds to a maximum microprocessor reaction time of 16 ms at 16 kbps data rate.
If the microprocessor is late in handling the interrupt, the incoming additional bytes will result in a "data overflow" interrupt and status bit.
7.5.3 Transmission of Frames in D Channel
A 64-byte FIFO is provided in the transmit direction. If the transmit FIFO is ready (which is indicated by a D_XFR interrupt), the micro-processor can write up to 32 bytes of data into the FIFO and use the XMS command bit to start frame transmission. The HDLC transmitter sends the opening flag first and then sends the data in the transmit FIFO.
The microprocessor must write the address, control and information field of a frame into the transmit FIFO.
Every time no more than 32 bytes of data are left in the transmit FIFO, the transmitter generates a D_XFR interrupt to request another block of data. The microprocessor can then write further data to the transmit FIFO and enables the subsequent transmission by issuing an XMS command.
If the data written to the FIFO is the last segment of a frame, the microprocessor issues the XME (Transmit Message End) and XMS command bits to finish the frame transmission. The transmitter then transmits the data in the FIFO and appends CRC and closing flag.
If the microprocessor fails to respond the D_XFR interrupt within a given time (16 ms), a data underrun condition will occur. The W6691 will automatically reset the transmitter and send inter frame time fill pattern (all 1's) on D channel. The microprocessor is informed about this condition via an XDUN (Transmit Data Underrun) interrupt in D_EXIR register. The microprocessor must wait until transmit FIFO ready (via XFR interrupt), re-write data, and issue XMS command to re-transmit the data.
It is possible to abort a frame by issuing a D_CMDR:XRST (D channel Transmitter Reset) command. The XRST command resets the transmitter and causes a transmit FIFO ready condition.
After the microprocessor has issued the XME command, the successful termination of transmission is indicated by an D_XFR interrupt.
46
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
The inter-frame time fill pattern must be all 1's, according to ITU-T I.430.
Collisions which occur on the D channel of S interface will cause an D_EXIR:XCOL interrupt. A XRST (Transmitter Reset) command must be issued and software must wait until transmit FIFO ready (via XFR interrupt), re-write data, and issue XMS command to re-transmit the data.
7.6 GCI Mode Serial Interface Bus
The GCI is a generalization and enhancement of the general purpose, serial interface bus. The channel structure of the GCI mode is depicted below. The timing is compatible with Siemens's IOM-2 mode.
TE Mode Timing
TE mode contains three channels. The structure of TE mode is show in Fig7.10.
47
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
DCL
FSC
125us
FSC
DU / DD
B1
B2
M0
D CI0 AE
M1
CI1
AE
CH0
CH1
CH2
B1 : 64 Kbits/s B channel 1 B2 : 64 Kbits/s B channel 2 M0 : Monitor channel 0 D : 16Kbits/s D channel CI0: 48Kbits/s Command / Indication Channel A/E : 16Kbits Monitor channel handshake signaling M1: Monitor channel1 CI1: 48Kbits/s Command / Indication Channel
Fig.7.10 GCI TE Mode Channel Structure
Non-TE mode Timing: Non -TE mode timing is used LT-S and LT-T applications. The frame contains eight channel (ch0 ~ ch7) GCI channels. All structure of the eight channels shown in Fig7.11 is the same.
48
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
DCL
FSC
125us
FSC
DU / DD
C0
C1
C2
C3
C4
C5
C6
C7
C0
C1
C2
B1
B2
M
D
CI
AE
C0
B1 : 64 Kbits/s B channel 1 B2 : 64 Kbits/s B channel 2 M : Monitor channel D : 16Kbits/s D channel CI: 48Kbits/s Command / Indication Channel A/E : 16Kbits Monitor channel handshake signaling
Fig.7.11 GCI Non -Terminal Mode Channel Structure
7.6.1 GCI Mode C/I Channel Handling
1) CI0 channel The Command/Indication channel 0 carries real-time status information between the W6691 and another device connected to the GCI bus interface.
49
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
One CI0 channel conveys the commands and indications between a layer 1 device and layer 2 device. This C/I0 channel is accessed via register CIR (in receive direction, layer 1 to layer 2) and register CIX (in transmit direction, layer 2 to layer 1). The C/I code is 4-bit long. * In the receive direction, the code from layer 1 is continuously monitored, with an interrupt being generated anytime a change occurs. A new code must be found in two consecutive GCI frames to be considered valid and to trigger a C/I code change interrupt status (double last look criterion). * In the transmit direction, the code written in CIX is continuously transmitted in the channel. 2) CI1 channel CI1 channel is responsible for real time communication between W6691 and other non-layer1 peripheral devices. It consists of six bits. This channel can be used only in TE mode. C1X and C1R are used for CI1 channel access in both of transmitting and receiving direction. CI1 code changed is indicated by an interrupt without double last look criterion. This interrupt will set CI1 bit in GCI_EXIR.
7.6.2 GCI Mode Monitor Channel Handling
The Monitor channel protocol is a handshake protocol used for high speed information exchange between the W6691 and other devices. The Monitor channel is necessary for: * Programming and controlling devices attached to the GCI interface. * Data exchange between two microprocessor systems attached to two different devices on one GCI backplane. Use of the Monitor channel avoids the necessity of a dedicated serial communication path between two systems. The Monitor channel operates on an asynchronous basis. While data transfers on the bus take place synchronized to frame sync, the flow of data is controlled by a handshake procedure using the Monitor Channel Receiver (MOR) and Monitor Channel Transmit (MOX) bits. When data is placed into the Monitor channel and the "A" bit is activated. This data will be transmitted repeatedly once per 8 KHz frame until the transfer is acknowledged via the "E" bit. The microprocessor may either enforce a 1 (idle state) in "E", "A" bit by setting the control bit MRC or MXC (MOCR register) to 0, or enable the control of these bits internally by the W6691 according to the Monitor channel protocol. Thus, before a data exchange can begin, the control bit MRC, or MXC should be set to 1 by the microprocessor.
50
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
The relevant status bits are: * For the reception of Monitor data: MDR (Monitor Channel Data Received ) MER (Monitor Channel End of Reception) * For the transmission of Monitor data: MDA (Monitor Channel Data Acknowledged ) MAB (Monitor Channel Data Abort) About the status bit MAC( Monitor Channel Transmit Active) indicates whether a transmission is progress. * If set MAC = 0, the previous transmission has been terminated. Before starting a transmission, the microprocessor should verify that the transmitter is inactive. * If set MAC = 1, after having written data into the Monitor Transmit Channel (MOX) register, the microprocessor sets this bit to 1. This enables the "A" bit to go active (0), indicating the presence of valid Monitor data (contents of MOX) in the corresponding frame. The receiving device stores the Monitor byte in its MOR (Monitor Receive Channel) and generates a MDR (Monitor Channel Data Receive) interrupt status. Alerted by the MDR interrupt, the microprocessor reads the MOR register. When it is ready to accept data, it sets the "E" control bit MRC to 1 to enable the receiver to store succeeding Monitor channel bytes and acknowledge them according to the Monitor channel protocol. In addition, it enables other Monitor channel interrupts by setting Monitor Channel Interrupt Enable to 1. The first Monitor channel byte is acknowledged by the receiving device setting the "E" bit to 0. This causes a MDA (Monitor Channel Data Acknowledge) interrupt status at the transmitter. A new Monitor channel data byte can now be written by the microprocessor in MOX register. The "A" bit is still in the active (0) state. The transmitter indicates a new byte in the Monitor channel by returning the "A" bit active after sending it once in the inactive state. The receiver stores the Monitor channel byte in MOR register and generates a new MDR interrupt status. When the microprocessor has read the MOR register , the receiver acknowledges the data by returning the "E" bit active after sending it once in the inactive state. This in turn causes the transmitter to generate a MDA interrupt status. This MDA interrupt write data MDR interrupt read data MDA interrupt handshake procedure is repeated as long as the transmitter has data to send. When the last byte has been acknowledged by the receiver (MDA interrupt status), the microprocessor sets the Monitor channel Transmit Control bit MXC to 0. This enforces an inactive (1) state in the "A" bit. Two frames of "A" inactive signifies the end of a message. Thus, a MER (Monitor channel End of Reception) interrupt status is generated by the receiver when the "A" bit is received in the inactive state in two consecutive frames. As a result, the microprocessor sets the "E" bit control bit MRC to 0, which in turn enforces an inactive state in the "E" bit. This marks the end of the transmission, making the MAC (Monitor channel Active) bit return to 0. During a transmission process, it is possible for the receiver to ask a transmission to be aborted by sending an inactive "E" bit value in two consecutive frames. This is effected by the microprocessor writing the "E" bit control bit MRC to 0. An aborted transmission is indicated by a MAB (Monitor Channel Data Abort) interrupt Publication Release Date: Sep 2001 Revision 1.1
51
Preliminary W6691
7.7 8-bit Microprocessor Interface
At power up, the reset pin RST# must be asserted to initialize the chip. At rising edge of RST#, data value at MBS pin determines the operation modes: HIGH for Intel bus mode, LOW for Motorola bus mode.
52
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
8. REGISTER DESRCRIPTIONS
8.1 D Channel HDLC Controller Register Address Map
TABLE 8.1 D CHANNEL HDLC CONTROLLER REGISTER ADDRESS MAP
Offset 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 R/W R/W R/W R/W R/W R/W D_SAM D_SAP1 D_SAP2 D_TAM D_TEI1 D_TEI2 R R D_XSTA D_RSTA Access R W W R/W R_clear R/W R_clear R/W Register Name D_RFIFO D_XFIFO D_CMDR D_MODE ISTA IMASK D_EXIR D_EXIM Description D channel receive FIFO D channel transmit FIFO D channel command register D channel mode control Interrupt status register Interrupt mask register D channel extended interrupt D channel extended interrupt mask Reserved Reserved D channel transmit status D channel receive status Reserved Reserved D channel address mask 1 D channel individual SAPI 1 D channel individual SAPI 2 D channel address mask 2 D channel individual TEI 1 D channel individual TEI 2 Reserved Reserved
53
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
16 17
R R
D_RBCH D_RBCL
D channel receive frame byte count high D channel receive frame byte count low
8.2 GCI Bus Control Register Address Map
TABLE 8.2 GCI BUS CONTROL REGISTER ADDRESS MAP
Offset 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E R/W R R/W R_clear R/W GCR MO1R MO1X MO1I MO1C R/W R/W R_clear R/W MO0R MO0X MO0I MO0C R/W R/W R R/W CIR CIX SQR SQX Access W Register Name CSEL Description Gci Bus cahnnel selection register Reserved Command/Indication receive Command/Indication transmit S/Q channel receive register S/Q channel transmit register Reserved Reserved Monitor receive channel 0 Monitor transmit channel 0 Monitor channel 0 interrupt Monitor channel 0 control register Reserved Reserved GCI mode control/ status register Monitor receive channel 1 Monitor transmit channel 1 Monitor channel 1 interrupt Monitor channel 1 control Reserved Reserved Reserved Reserved
54
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
2F 30 31 32 33 34 35 R_clear R/W GCI_EXIR GCI_EXIM R R/W CI1R CI1X
Reserved Reserved GCI CI1 indication GCI CI1 command Reserved GCI extended interrupt GCI extended interrupt mask
8.3 Miscellaneous Register Address Map
TABLE 8.3 MISCELLANEOUS REGISTER ADDRESS MAP
Offset 36 37 38 39 3A 3B 3C 3D 3E 3F R/W R/W R/W R/W R/W R/W R/W R/W TIMR1 TIMR2 PCR PIODR SFCTL ACTL1 ACTL2 ACTL3 Access Register Name Description Reserved Reserved Timer 1 Timer 2 Peripheral control register Peripheral I/O data register Switch function controll register Auxiliary control register 1 Auxiliary control register 2 Auxiliary control register 3
8.4 D Channel HDLC Controller Register Memory Map
TABLE 8.4 D CHANNEL HDLC CONTROLLER REGISTER MEMORY MAP
Offset 00 R/W R Name D_RFIFO 7 6 5 4 3 2 1 0
55
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
Offset 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17
R/W W W R/W
Name D_XFIFO D_CMDR D_MODE
7
6
5
4
3
2
1
0
RACK 0
RRST RACT
0 XACT D_XFR D_XFR XCOL XCOL
STT1 S_RLPD INT1 INT1 TIN2 TIN2
XMS 0 INT0 INT0 GCI GCI
0 MFD D_EXI D_EXI ICC ICC
XME
XRST
L2_DLP S_RLP B1_EXI B1_EXI T1EXP T1EXP B2_EXI B2_EXI SCC SCC
R_clr ISTA R/W IMASK
D_RMR D_RME D_RMR D_RME RDOV RDOV XDUN XDUN
R_clr D_EXIR R/W D_EXIM
Reserved Reserved R R D_XSTA D_RSTA XDOW 0 0 RDOV XBZ CRCE 0 RMB 0 0 0 0 0 0 0 0
Reserved Reserved R/W R/W R/W R/W R/W R/W D_SAM D_SAP1 D_SAP2 D_TAM D_TEI1 D_TEI2 SAM7 SA17 SA27 TAM7 TA17 TA27 SAM6 SA16 SA26 TAM6 TA16 TA26 SAM5 SA15 SA25 TAM5 TA15 TA25 SAM4 SA14 SA24 TAM4 TA14 TA24 SAM3 SA13 SA23 TAM3 TA13 TA23 SAM2 SA12 SA22 TAM2 TA12 TA22 SAM1 SA11 SA21 TAM1 TA11 TA21 SAM0 SA10 SA20 TAM0 TA10 TA20
Reserved Reserved R R D_RBCH D_RBCL VN1 RBC7 VN0 RBC6 LOV RBC5 RBC12 RBC4 RBC11 RBC3 RBC10 RBC2 RBC9 RBC1 RBC8 RBC0
56
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
8.5 GCI Bus Register Memory Map
TABLE 8.5 GCI BUS REGISTER MEMORY MAP
Offset 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 R CI1R 0 0 CI1R_6 R R R/W GCR MO1R MO1X 0 0 0 0 0 0 0 0 MDR1 MRIE1 MER1 MRC1 MDA1 MXIE1 MAB1 MXC1 MAC0 MAC1 0 R R/W MO0R MO0X 0 0 0 0 0 0 0 0 MDR0 MRIE0 MER0 MRC0 MDA0 MXIE0 MAB0 MXC0 R R/W R R/W CIR CIX SQR SQX 0 0 0 0 0 0 0 0 0 0 MSYN 0 BAS BAC 0 0 R/W R/W Name CSEL 7 0 6 0 5 0 4 0 3 0 2 CSEL2 1 CSEL1 0 CSEL0
Reserved CORD3 CORD3 S1 Q1 CORD2 CORD1 CORD2 CORD1 S2 Q1 S3 Q1 CORD0 CORD0 S4 Q1
Reserved Reserved
R_clr MO0I R/W MO0C
Reserved Reserved 0 0 0 0 0
R_clr MO1I R/W MO1C
Reserved Reserved Reserved Reserved Reserved Reserved CI1R_5 CI1R_4 CI1R_3 CI1R_2 CI1R_1
57
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
Offset 32 33 34 35
R/W R/W
Name CI1X
7 0
6 0
5 CI1X_6
4 CI1X_5
3 CI1X_4
2 CI1X_3
1 CI1X_2
0 CI1X_1
Reserved R_clr GCI_EXIR R/W GCI_EXIM 0 1 0 1 0 1 MO1C MO1C MO0C 0 0 0 0 0 CI1 CI1
8.6 Miscellaneous Register Memory Map Table 8.6 Miscellaneous Register Memory Map
Offset 36 37 38 39 3A 3B 3C 3D 3E 3F R/W R/W R/W R/W R/W R/W R/W R/W TIMR1 TIMR2 PCR PIODR SFCTL ACTL1 ACTL2 ACTL3 T1MD TMD 0 0 0 0 0 0 CNT6 TIDLE 0 0 CNT5 TCN5 0 0 R/W Name 7 6 5 4 3 2 1 0
Reserved Reserved CNT4 TCN4 0 0 PXC 0 0 0 0 CNT3 TCN3 OE3 IO3 B2SW1 0 SPU 0 CNT2 TCN2 OE2 IO2 CNT1 TCN1 OE1 IO1 CNT0 TCN0 OE0 IO0 B1SW0 OPS0 0 0
PGSWH PCRLP 0 ACTL1 INTOL SRST LC
B2SW0 B1SW1 PD 0 0 OPS1 0 0
8.7 D channel HDLC Controller Register Description
8.7.1 D_ch receive FIFO D_RFIFO Read Address 00H
The D_RFIFO has a length of 64 bytes. After a D_RMR interrupt, exactly 32 bytes are available. After a D_RME interrupt, the number of bytes available equals RBC4-0 bits in the D_RBCL register.
58
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
8.7.2 D_ch transmit FIFO
D_XFIFO
Write Address 01H
The D_XFIFO has a length of 64 bytes. After an D_XFR interrupt, up to 32 bytes of data can be written into this FIFO for transmission. At the first time transmission, up to 64 bytes of data can be written.
8.7.3 D_ch command register
D_CMDR
Write
Address 02H
Value after reset: 00H
7 RACK
6 RRST
5 0
4 STT1
3 XMS
2 0
1 XME
0 XRST
RACK
Receive Acknowledge
After a D_RMR or D_RME interrupt, the processor must read out the data in D_RFIFO and then sets this bit to acknowledge the interrupt. Writing "0" to this bit has no effect. If RACK bit is set to "1" for operating "Receiver Acknowledge", It is not necessary to reset RACK bit to "0" by host processor. That is to say, once RACK is set to "1", RACK bit is reset to "0" by W6691 automatically.
RRST
Receiver Reset
Setting this bit resets the D_ch HDLC receiver and clears the D_RFIFO data. Writing "0" to this bit has no effect. If RRST bit is set to "1" for operating "Receiver Reset", It is not necessary to reset RRST bit to "0" by host processor. That is to say, once RRST is set to "1", RRST bit is reset to "0" by W6691 automatically.
STT1
Start Timer 1
The timer 1 is started when this bit is set to one. The timer is stopped when it expires or by a write of the TIMR1 register. Writing "0" to this bit has no effect. If SST1 bit is set to "1" for operating "Start Timer1", It is not necessary to reset STT1 bit to "0" by host processor. That is to say, once STT1 is set to "1", STT1 bit is reset to "0" by W6691 automatically.
59
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
XMS
Transmit Message Start/Continue
Setting this bit will start or continue the transmission of a frame. The opening flag is automatically added by the HDLC controller. Writing "0" to this bit has no effect. If XMS bit is set to "1" for operating "Transmit Message Start/Continue", It is not necessary to reset XMS bit to "0" by host processor. That is to say, once XMS is set to "1", XMS bit is reset to "0" by W6691 automatically.
XME Transmit Message End Setting this bit indicates the end of frame transmission. The D_ch HDLC controller automatically appends the CRC and the closing flag after the data transmission. Writing "0" to this bit has no effect. If XME bit is set to "1" for operating "Transmit Message End", It is not necessary to reset XME bit to "0" by host processor. That is to say, once XME is set to "1", XME bit is reset to "0" by W6691 automatically. Note: If the frame 32 bytes, XME plus XMS commands must be issued at the same time.
XRST Transmitter Reset Setting this bit resets the D_ch HDLC transmitter and clears the D_XFIFO. The transmitter will send inter frame time fill pattern (which is 1's) immediately. This command also results in a transmit FIFO ready condition. Writing "0" to this bit has no effect. If XRST bit is set to "1" for operating "Transmit Reset", It is not necessary to reset XME bit to "0" by host processor. That is to say, once XRST is set to "1", XRST bit is reset to "0" by W6691 automatically.
8.7.4 D_ch Mode Register D_MODE
Read/Write
Address 03H
Value after reset : 00H
7 0
6 RACT
5 XACT
4 0
3 S_RLPD
2 MFD
1
0
L2_DLP S_RLP
RACT
Receiver Active
Setting this bit activates the D_ch HDLC receiver. This bit can be read. The receiver must be in active state in order to receive data. Note: The receiver is deactive after hardware reset or software reset.
60
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
XACT
Transmitter Active
Setting this bit activates the D_ch HDLC transmitter. This bit can be read. The transmitter must be in active state in order to transmit data. Note: The transmitter is deactive after hardware reset or software reset.
S_RLPD
S Interface Remote Loopback with D channel Loopback
Setting this bit to "1" activates the remote loopback function. The received 2B channels from the S interface are looped to the transmitted 2B channels of S interface. The received D channel from the S interface is also looped to transmitted D channel of S interface in the loopback function.
MFD
Multiframe Disable
This bit is used to enable or disable the multiframe structure on S/T interface : 0 : Multiframe is enabled 1 : Multiframe is disabled
L2_DLP
Layer2 Digital Loopback
Setting this bit activates the layer2 digital loopback function. The transmitted digital 2B+D channels are looped to the received 2B+D channels. Note that after hardware reset, the internal clocks will turn off if the S bus is not connected or if there is no signal on the S bus. In this case, the C/I command ECK must be issued to enable loopback function.
S_RLP
S Interface Remote Loopback
Setting this bit to "1" activates the remote loopback function. The received 2B channels from the S interface are looped to the transmitted 2B channels of S interface. The received D channel from the S interface is not looped to transmitted D channel of S interface in this loopback function. .
8.7.5 Interrupt Status Register
ISTA
Read_clear
Address 04H
Value after reset : 00H
7 D_RMR
6 D_RME
5 D_XFR
4 INT1
3 INT0
2 D_EXI
1 B1_EXI
0 B2_EXI
61
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
D_RMR
D_ch Receive Message Ready
A 64-byte data is available in the D_RFIFO. The frame is not complete yet.
D_RME
D_ch Receive Message End
The last part of a frame with length > 32 bytes or a whole frame with length 32 bytes has been received. The whole frame length is obtained from D_RBCH + D_RBCL registers. The length of data in the D_RFIFO equals: data length = RBC4-0 data length = 32 if RBC4-0 0 if RBC4-0 =0
D_XFR
D_ch Transmit FIFO Ready
This bit indicates that the transmit FIFO is ready to accept data. Up to 32 bytes of data can be written into the D_XFIFO. An D_XFR interrupt is generated in the following cases : - After an XMS command, when 32 bytes of XFIFO is empty - After an XMS together with an XME command is issued, when the whole frame has been transmitted - After an XRST command
- After hardware reset or software reset
INT1
INT1 Interrupt
If the INT1 bit is set to "1", this bit indicates that interrupt trigger occurs at INT1 pin.
INT0
INT0 Interrupt
If the INT0 bit is set to "1", this bit indicates that interrupt trigger occurs at INT0 pin.
D_EXI
D_ch Extended Interrupt
This bit indicates that at least one interrupt bit is set in D_EXIR register. Note : A read of the ISTA register clears all bits except D_EXI, D_EXI bit is cleared when all bits in D_EXIR register are cleared.
62
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
B1_EXI
B1_ch Extended Interrupt
This bit indicates that at least one interrupt bit has been set in B1_EXIR register.
B2_EXI
B2_ch Extended Interrupt
This bit indicates that at least one interrupt bit has been set in B2_EXIR register.
8.7.6 Interrupt Mask Register
IMASK Read/Write
Address 05H
Value after reset: FFH
7 D_RMR
6 D_RME
5 D_XFR
4 INT1
3 INT0
2 D_EXI
1 B1_EXI
0 B2_EXI
Setting the bit to "1" masks the corresponding interrupt source in ISTA register. Masked interrupt status bits are read as zero. They are internally stored and pending until the mask bits are zero. Note: Setting the D_EXI bit to "1" masks the interrupts in D_EXIR register.
8.7.7 D_ch Extended Interrupt Register
D_EXIR
Read_clear
Address 06H
Value after reset: 00H
7 RDOV
6 XDUN
5 XCOL
4 TIN2
3 GCI
2 ICC
1 T1EXP
0 SCC
RDOV
Receive Data Overflow
Frame overflow (too many short frames) or data overflow occurs in the receive FIFO. In data overflow, the incoming data will overwrite the data in the receive FIFO. If RDOV interrupt occurs, software has to reset the receiver and discard the data received.
63
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
XDUN
Transmit Data Underrun
This interrupt indicates the D_XFIFO has run out of data. In this case, the W6691 will automatically reset the transmitter and send the inter frame time fill pattern (all 1's) on D channel. The microprocessor must wait until transmit FIFO ready (via XFR interrupt), re-write data, and issue XMS command to re-transmit the data.
XCOL
Transmit Collision
This bit indicates a collision on the S-bus has been detected. W6691 will automatically reset the transmitter and software must wait until transmit FIFO ready (via XFR interrupt), then, re-write data, and issue XMS command to re-transmit the data.
TIN2
Timer 2 Expiration
This bit is set when Timer 2 counts down to zero.
GCI
GCI Interrupt
This bit is set when at least one bit is set in GCI_EXIR register.
ICC
Indication Channel Change
A change in the layer 1 indication code is detected. The actual value can be read from CIR registers.
T1EXP
Timer 1 Expiration
Expiration occurs in the Timer 1.
SCC
S Channel Change
A change in multi-frame S channel is detected. The actual value can be read from SQR registers.
8.7.8 D_ch Extended Interrupt Mask Register
D_EXIM
Read/Write
Address 07H
Value after reset: FFH
7 RDOV
6 XDUN
5 XCOL
4 TIN2
3 GCI
2 ICC
1 T1EXP
0 SCC
64
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
Setting the bit to "1" masks the corresponding interrupt source in D_EXIR register. Masked interrupt status bits are read as zero. They are internally stored and pending until the mask bits are zero. Note: All the interrupts in D_EXIR will be masked if the IMASK:D_EXI bit is set to "1".
8.7.9 D_ch Transmitter Status Register
D_XSTA
Read
Address 0AH
Value after reset: 00H
7 XDOW
6 0
5 XBZ
4 0
3 0
2 0
1 0
0 0
XDOW
Transmit Data Overwritten
At least one byte of data has been overwritten in the D_XFIFO. This bit is set by data overwritten condition and is cleared only by XRST command.
XBZ
Transmitter Busy
This bit indicates the D_HDLC transmitter is busy. The XBZ bit is set to"1" from the transmission of opening flag to the transmission of closing flag.
8.7.10 D_ch Receive Status Register
D_RSTA
Read
Address 0BH
Value after reset: 20H
7 0
6 RDOV
5 CRCE
4 RMB
3 0
2 0
1 0
0 0
RDOV
Receive Data Overflow
A "1" indicates that the D_RFIFO is overflow. The incoming data will overwrite data in the receive FIFO. The data overflow condition will set both the status and interrupt bits. It is recommended that software must read the RDOV bit after reading data from D_RFIFO when RMR or RME interrupt occurs. The software must
65
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
abort the data and issue a RRST command to reset the receiver if RDOV = 1. The frame overflow condition will not set this bit.
CRCE
CRC Error
This bit indicates the result of frame CRC check: 0: CRC correct 1: CRC error
RMB
Receive Message Aborted
A "1" means that a sequence of seven 1's was received and the frame is aborted. Software must issue RRST command to reset the receiver.
Note: Normally D_RSTA register should be read by the microprocessor after a D_RME interrupt. The contents of D_RSTA are valid only after a D_RME interrupt and remain valid until the frame is acknowledged via a RACK bit.
8.7.11 D_ch SAPI Address Mask
Value after reset: 00H
D_SAM
Read/Write
Address 0EH
7 SAM7
6 SAM6
5 SAM5
4 SAM4
3 SAM3
2 SAM2
1 SAM1
0 SAM0
This register masks(disables) the first byte address comparison of the incoming frame. If the mask bit is "1" the corresponding bit comparisons with D_SAP1, D_SAP2 are disabled. Comparison with SAPG is always performed. Each HDLC frame has two address byte. The first byte is SPAI and second byte is TEI. The D_ch HDLC controller will compare these two bytes with contents of D_SAPI1, DSAP2 and D_TEI1, D_TEI2. If the HDLC frame SAPI matches D_SAPI1 or D_SAP2 and the HDLC frame TEI matches D_TEI1 or D_TEI2, the HDLC frame is captured and stored in D_channel receiving FIFO. If comparison operation is enabled ( This means that the more than one bit in D_SAM is set to "1"), except the frame with matching address is stored, others are discarded. . If comparison operation is disabled ( This means that the all bits in D_SAM are set to "0"), all frame with any address combination are captured and stored in receiving FIFO. The mask operation can be programmed by each bit respectively. The HDLC frame with SAPG and /or TEIG address are always captured and stored.
66
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
Note : For the LAPD frame, the least significant two bits are the C/R bit and EA =0 bit. It is suggested that the comparison with C/R bit be masked. EA=0 for two octet address frame e.g LAPD, EA=1 for one octet address frame.
8.7.12 D_ch SAPI1 Register D_SAP1
Read/Write
Address 0FH
Value after reset: 00H
7 SA17
6 SA16
5 SA15
4 SA14
3 SA13
2 SA12
1 SA11
0 SA10
This register contains the first choice of the first byte address of received frame. For LAPD frame, SA17 SA12 is the SAPI value, SA11 is C/R bit and SA10 is zero.
8.7.13 D_ch SAPI2 Register
D_SAP2
Read/Write
Address 10H
Value after reset: 00H
7 SA27
6 SA26
5 SA25
4 SA24
3 SA23
2 SA22
1 SA21
0 SA20
This register contains the second choice of the first byte address of received frame. For LAPD frame, SA27 SA22 is the SAPI value, SA21 is C/R bit and SA20 is zero.
8.7.14 D_ch TEI Address Mask
Value after reset: 00H 7 TAM7 6 TAM6 5 TAM5 4 TAM4
D_TAM
Read/Write
Address 11H
3 TAM3
2 TAM2
1 TAM1
0 TAM0
67
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
This register masks (disables) the second byte address comparison of the incoming frame. If the mask bit is "1" the corresponding bit comparisons with D_TEI1, D_TEI2 are disabled. . The HDLC frame with SAPG and /or TEIG address are always captured and stored. Note : For the LAPD frame, the least significant bit is the EA =1 bit.
8.7.15 D_ch TEI1 Register D_TEI1
Read/Write
Address 12H
Value after reset: 00H
7 TA17
6 TA16
5 TA15
4 TA14
3 TA13
2 TA12
1 TA11
0 TA10
TA17 - TA10 This register contains the first choice of the second byte address of received frame. For LAPD frame, TA17 TA11 is the TEI value, TA10 is EA = 1.
8.7.16 D_ch TEI2 Register D_TEI2
Read/Write
Address 13H
Value after reset: 00H
7 TA27
6 TA26
5 TA25
4 TA24
3 TA23
2 TA22
1 TA21
0 TA20
TA27 - TA20 This register contains the second choice of the second byte address of received frame. For LAPD frame, TA27 - TA21 is the TEI value, TA20 is EA = 1.
68
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
8.7.17 D_ch Receive Frame Byte Count High
D_RBCH
Read Address 16H
Value after reset: 40H
7 VN1
6 VN0
5 LOV
4
3
2
1 RBC9
0 RBC8
RBC12 RBC11 RBC10
VN1-0
Chip Version Number
This is the chip version number. It is read as 01B.
LOV
Length Overflow
A "1" in this bit indicates 8192 bytes are received and the frame is not yet complete. This bit is valid only after a D_RME interrupt and remains valid until the frame is acknowledge via the RACK command.
RBC12-8
Receive Byte Count
These bits are five most significant bits of the total frame length. These bits are valid only after a D_RME interrupt and remain valid until the frame is acknowledge via the RACK command.
8.7.18 D_ch Receive Frame Byte Count Low
D_RBCL
Read
Address 17H
Value after reset: 00H
7 RBC7
6 RBC6
5 RBC5
4 RBC4
3 RBC3
2 RBC2
1 RBC1
0 RBC0
RBC7-0
Receive Byte Count
These bits are eight least significant bits of the total frame length. Bits RBC4-0 also indicate the length of the data currently available in D_RFIFO. These bits are valid only after an D_RME interrupt and remain valid until the frame is acknowledged via the RACK command.
69
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
8.8 GCI Bus Register Description
8.8.1 Channel Selection Register
CSEL
Read/Write
Address 18H
Value after reset: 00H
7 0
6 0
5 0
4 0
3 0
2 CSEL2
1 CSEL1
0 CSEL0
CSEL2, CSEL1 and CSEL0 define W6691 locating in GCI channel number operated in LT-S/ LT-T mode.
8.8.2 Command/Indication Receive Register CIR Read Address 1AH
Value after reset: 0FH
7 0
6 0
5 0
4 BAS
3 CODR3
2 CODR2
1 CODR1
0 CODR0
BAS Bus Access Status Indicate the state of the TIC -bus: 1: W6691 itself occupies the D and C/I channel. 0: Another device occupies the D channel and C/I channel.
CODR3-0 Layer 1 Indication Code Value of the received layer 1 indication code. Note these bits have a buffer size of two. If TE mode is selected, CODR3-0 bits are CI0 bits in GCI bus channel.
70
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
8.8.3 Command/Indication Transmit Register CIX Read/Write Address 1BH
Value after reset: 0FH
7 0
6 0
5 0
4 BAC
3 CODX3
2 CODX2
1 CODX1
0 CODX0
BAC Bus Access Control It is available if TIC bus function is active. If this bit is set to "1", W6691 will try to access the TIC-bus to occupy the C/I channel even if no D channel frame has to be transmitted. It should be reset when the access has been completed to grant a similar access to the other devices transmitting in that GCI channel.
CODX3-0 Layer 1 Command Code Value of the command code is transmitted to layer 1. If TE mode is selected, CODX3-0 bits are CI0 bit in GCI bus channel. Reading this register returns the previous written value.
8.8.4 S/Q Channel Receive Register
SQR
Read Address 1CH
Value after reset: XXH
7 0
6 0
5 MSYN
4 0
3 S1
2 S2
1 S3
0 S4
MSYN
Multiframe Synchronization
When this bit is "1", a multiframe synchronization is achived, i.e the S/T receiver has synchronized to the received FA and M bit patterns.
S1-4
Received S Bits
These are the S bits received in NT to TE direction in frames 1, 6, 11 and 16. S1 is in frame 1, S2 is in frame 6 etc. These four bits are double buffered. Publication Release Date: Sep 2001 Revision 1.1
71
Preliminary W6691
8.8.5 S/Q Channel Transmit Register SQX Read/Write Address 1DH
Value after reset: 0FH
7 0
6 0
5 0
4 0
3 Q1
2 Q2
1 Q3
0 Q4
Q1-4
Transmitted Q Bits
These are the transmitted Q channels in FA bit positions in frames 1, 6, 11 and 16. Q1 is in frame 1 and Q2 is in frame 6 etc. Reading this register returns the previous written value.
8.8.6 Monitor Receive Channel 0 MO0R Read Address 20H
Value after reset: FFH
7
6
5
4
3
2
1
0
Contains the Monitor channel data received in GCI Monitor channel 0 according to the Monitor channel protocol.
8.8.7 Monitor Transmit Channel 0
MO0X
Read/Write
Address 21H
Value after reset: FFH
7
6
5
4
3
2
1
0
72
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
Contains the Monitor channel data transmitted in GCI Monitor channel 0 according to the Monitor channel protocol.
8.8.8 Monitor Channel 0 Interrupt Register
MO0I
Read_clear
Address 22H
Value after reset: 00H
7 0
6 0
5 0
4 0
3 MDR0
2 MER0
1 MDA0
0 MAB0
MDR0 MER0 MDA0
Monitor channel 0 Data Receive Monitor channel 0 End of Reception Monitor channel 0 Data Acknowledged The remote end has acknowledged the Monitor byte being transmitted.
MAB0
Monitor channel 0 Data Abort
8.8.9 Monitor Channel 0 Control Register
MO0C
Read/Write
Address 23H
Value after reset: 00H
7 0
6 0
5 0
4 0
3 MRE0
2 MRC0
1 MIE0
0 MXC0
MRE0
Monitor Channel 0 Receive Interrupt Enable
Monitor channel interrupt status MDR0, MER0 generation is enabled (1) or masked (0).
73
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
MRC0
"E" Bit Control
Determines the value of the "E" bit: 0: "E" bit always "1". In addition, the MDR0 interrupt is blocked, except for the first byte of a packet (if MRE0=1). 1: "E" bit is internally controlled by the W6691 according to Monitor channel protocol. In addition, the MDR0 interrupt is enabled for all received bytes according to the Monitor channel protocol (if MRE0=1). MIE0 Monitor channel 0 Transmit Interrupt Enable
Monitor interrupt status MDA0, MAB0 generation is enabled (1) or masked (0). MXC0 "A" bit Control
Determines the value of the "A" bit: 0: "A" bit is always 1. 1: "A" bit is internally controlled by W6691 according to Monitor channel protocol.
8.8.10 GCI Mode Control/Status Register
GCR
Read
Address 26H
Value after reset: 00H
7 MAC0
6 MAC1
5 0
4 0
3 0
2 0
1 0
0 0
MAC0 MONITOR TRANSMIT CHANNEL 0 ACTIVE (READ ONLY) Data transmission is in progress in GCI mode Monitor channel 0. 0: the previous transmission has been terminated. Before starting a transmission, the microprocessor should verify that the transmitter is inactive. 1: after having written data into the Monitor Transmit Channel 0 (MO0X) register, the microprocessor sets this bit to 1. This enables the "A" bit to go active (0), indicating the presence of valid Monitor channel data (contents of MOX) in the corresponding frame. MAC1 Monitor Transmit Channel 1 Active (Read Only)
Data transmission is in progress in GCI mode Monitor channel 1.
74
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
0: the previous transmission has been terminated. Before starting a transmission, the microprocessor should verify that the transmitter is inactive. 1: after having written data into the Monitor Transmit Channel 1 (MO1X) register, the microprocessor sets this bit to 1. This enables the "A" bit to go active (0), indicating the presence of valid Monitor channel data (contents of MOX) in the corresponding frame.
8.8.11 Monitor Receive Channel 1 Register MO1R Read Address 27H
Value after reset: FFH
7
6
5
4
3
2
1
0
Contains the Monitor channel data received in GCI Monitor channel 1 according to the Monitor channel protocol.
8.8.12 Monitor Transmit Channel 1 Register MO1X Read/Write Address 28H
Value after reset: FFH
7
6
5
4
3
2
1
0
Contains the Monitor channel data transmitted in GCI Monitor channel 1 according to the Monitor channel protocol.
75
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
8.8.13 Monitor Channel 1 Interrupt Register MO1I Read_clear Address 29H
Value after reset: 00H
7 0
6 0
5 0
4 0
3 MDR1
2 MER1
1 MDA1
0 MAB1
MDR1 MER1 MDA1
Monitor channel 1 Data Receive Monitor channel 1 End of Reception Monitor channel 1 Data Acknowledged The remote end has acknowledged the Monitor byte being transmitted.
MAB1
Monitor channel 1 Data Abort
8.8.14 Monitor Channel 1 Control Register
MO1C
Read/Write
Address 2AH
Value after reset: 00H
7 0
6 0
5 0
4 0
3 MRE1
2 MRC1
1 MIE1
0 MXC1
MRE1
Monitor Channel 1 Receive Interrupt Enable
Monitor channel interrupt status MDR1, MER1 generation is enabled (1) or masked (0). MRC1 "E" Bit Control
Determines the value of the "E" bit: 0: "E" bit is always 1. In addition, the MDR1 interrupt is blocked, except for the first MRE1=1). byte of a packet (if
76
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
1: "E" bit is internally controlled by the W6691 according to Monitor channel protocol. In addition, the MDR1 interrupt is enabled for all received bytes according to the Monitor channel protocol (if MRE1=1). MIE1 Monitor channel 1 Transmit Interrupt Enable
Monitor interrupt status MDA1, MAB1 generation is enabled (1) or masked (0). MXC1 "A" bit Control
Determines the value of the "A" bit: 0: "A" bit isalways 1. 1: "A" bit internally controlled by the W6691 according to Monitor channel protocol.
8.8.14 GCI CI1 Indication Register
CI1R
Read
Address 31H
Value after reset : Undefined
7 0
6 0
5 CI1R_6
4 CI1R_5
3 CI1R_4
2 CI1R_3
1 CI1R_2
0 CI1R_1
CI1R_6-1 Input data of GCI CI1 channel. CI1R is only used in TE mode selected. Example application is data of ARCOFI's Peripheral Control Interface input pins.
8.8.16 GCI CI1 Command Register
CI1X
Read/Write
Address 32H
Value after reset: 3FH
7 0
6 0
5 CI1X_6
4 CI1X_5
3 CI1X_4
2 CI1X_3
1 CI1X_2
0 CI1X_1
77
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
CI1X6_1 Transmitted data of GCI CI1 channel. CI1R is only used in TE mode selected. A read to these bits returns the previously written value. Example application is data of ARCOFI's Peripheral Control Interface output pins.
8.8.17 GCI Extended Interrupt Register
Value after reset : 00H 7 0 6 0 5 0 4 MO1C 3
GCI_EXIR
Read_clear
Address 34H
2 0
1 0
0 CI1
MO0C
MO1C
Monitor Channel 1 Status Change
A change in the Monitor Channel 1 Interrupt register ( MO1I ) has occurred. A new Monitor channel byte is stored in the MO1R register. MO0C Monitor Channel 0 Status Change
A change in the Monitor Channel 0 Interrupt register (MO0I) has occurred. A new Monitor channel byte is stored in the MO0R register. CI1 CI1 Synchronous Transfer Interrupt
When enabled, an interrupt is generated when there is a change in the received CIR1_6-1 code without double last look criterion. It is only used in TE-mode.
8.8.18 GCI Extended Interrupt Mask Register
Value after reset: F7H
GCI_EXIM
Read/Write
Address 35H
7 1
6 1
5 1
4 MO1C
3 0
2 0
1 0
0 CI1
78
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
Bit 7-5 are fixed at "1" and bit 3 is fixed at '0". This means MO0C interrupt cannot be masked. The interrupt is disabled when the bit is set.
8.9 Miscellaneous Register
8.9.1 Timer 1 Register TIMR1 Read/Write Address 38H
Value after reset : 00H
7 T1MD
6 CNT6
5 CNT5
4 CNT4
3 CNT3
2 CNT2
1 CNT1
0 CNT0
T1MD
Timer1 Mode
0 = Single Count Down Mode: The timer counts once and generates a T1EXP interrupt when expires. 1 = Periodical Count Down Mode: The timer counts periodically and generates an T1EXP interrupt at each expiration.
CNT6-0
Count Value
The expiration time is defined as: T1 = CNT[6:0] * 0.1 second
After writing this register, STT1 bit in D_CMDR register must be set to start the timer. This register can be read only after the timer has been started. The read value indicates the timer's current count value. In case layer 1 is not activated, a C/I command "ECK" must be issued in addition to the STT1 command to start the timer. Note: The timer is stopped when it expires in Single Count Down Mode(T1MD=0) or TIMR1 register is rewritten in both mode.
79
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
8.9.2 Timer 2 TIMR2 Read/ Write Address 39H
Value after reset: 00H
7 TMD
6 TIDLE
5 TCN5
4 TCN4
3 TCN3
2 TCN2
1 TCN1
0 TCN0
TMD
Timer 2 Mode
0: Single Count Down mode: The timer starts when it is written a non-zero count value and stops when it reaches zero. 1: Periodical Count Down Mode: The timer starts when it is written a non-zero count value and counts down cyclically (periodically) with the count value. In both cases, a maskable interrupt TIN2 is generated every time the timer reaches zero. When timer starts, pin TOUT2 changes to HIGH and toggles every half count time. Therefore, the period of TOUT2 equals count value. In both cases, timer counts with the new value if it is written again before expiration. The timer is stopped when it expires in single count mode (TMD=0), or zero count value is written in TCN5-0 (TMD=0 or 1).
TIDLE
TOUT2 Idle
This bit defines value of TOUT2 pin when timer is off. That is to say, the TIDLE determine the TOUT2 pin level is high or low when timer2 is off.
TCN5-0
Timer 2 Count Value
0: Timer is off. 1 - 63: Timer count value in unit of ms.
80
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
8.9.3 Peripheral Control Register PCR
Read/Write
Address 3AH
Value after reset: 00H
7 0
6 0
5 0
4 0
3 OE3
2 OE2
1 OE1
0 OE0
Only for PLCC 68 pins : OE3 Direction Control for IO3
0 : Pin IO3's output driver is disabled and input driver is enabled 1 : Pin IO3's output driver is enabled. Note: The ACLT2: INT1M bit should be set to "0", INT1/IO3 pin can be as IO. Otherwise, It is configured as interrupt input.
OE2
Direction Control for IO2
0 : Pin IO2's output driver is disabled and input driver is enabled 1 : Pin IO2's output driver is enabled. Note: The ACLT2: INT0M bit should be set to "0", INT0/IO2 pin can be as IO. Otherwise, It is configured as interrupt input.
OE1
Direction Control for IO1
0 : Pin IO1's output driver is disabled and input driver is enabled 1 : Pin IO1's output driver is enabled.
OE0
Direction Control for IO0
0 : Pin IO0's output driver is disabled and input driver is enabled 1 : Pin IO0's output driver is enabled.
81
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
8.9.4 Peripheral I/O Data Register
PIODR
Read/Write
Address 3BH
Value after reset: 00
7 0
6 0
5 0
4 0
3 IO3
2 IO2
1 IO1
0 IO0
Only for PLCC 68 pins : IO3 Read or Write Data of Pin IO3
On read operation, the present value of pin IO3 is read. On write operation, the data is driven to pin IO3 only if PCTL:OE3=1. Note: The ACLT2: INT1M bit should be set to "0", INT1/IO3 pin can be as IO. Otherwise, It is configured as interrupt input. IO2 Read or Write Data of Pin IO2
On read operation, the present value of pin IO2 is read. On write operation, the data is driven to pin IO2 only if PCTL:OE2=1. Note: The ACLT2: INT0M bit should be set to "0", INT0/IO2 pin can be as IO. Otherwise, It is configured as interrupt input. IO1 Read or Write Data of Pin IO1
On read operation, the present value of pin IO1 is read. On write operation, the data is driven to pin IO1 only if PCTL:OE1=1.
IO0 Read or Write Data of Pin IO0 On read operation, the present value of pin IO0 is read. On write operation, the data is driven to pin IO0 only if PCTL:OE0=1.
82
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
8.9.5 SFCTL Switch Functional Control Register Read/Write
Value after reset : 00H
Address 3CH
7 0
6 PGSWH
5 PCRLP
4 PXC
3 B2SW1
2 B2SW0
1 B1SW1
0 B1SW0
PGSWH PCM and GCI bus Switch Determines the CODEC interface is to be operated in B channel. 1: PCM bus is selected to operate with CODEC. 0: GCI bus is selected to operate with CODEC. PCRLP PCM Remote Loop Back Setting this bit activates the PCM channel remote loopback function. The transmitted PCM data to PCM channel are looped to received PCM channel.
PXC
PCM Cross-connect
This bit determines whether or not the PCM ports are cross-connected with the B channel ports. The setting of PXC is independent of the BSW1-0 bits.
PXC 0 1
Connection PCM1 B1, PCM2 B2 PCM1 B2, PCM2 B1
B2SW1 / B2SW0 B2 channel Switch These two bits determine B2 channel switch among PCM port , GCI and Layer2. 00: Select B2 channel switch between Layer2 and Layer1/GCI. 01: Select B2 channel switch between Layer1/GCI and PCM. 10: Select B2 channel switch between PCM and Layer2.
83
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
B1SW1 / B1SW0
B1 channel Switch
These two bits determine B1 channel switch among PCM port , GCI and Layer2. 00: Select B1 channel switch between Layer2 and Layer1/GCI. 01: Select B1 channel switch between Layer1/GCI and PCM. 10: Select B1 channel switch between PCM and Layer2.
8.9.6 ACTL1
Auxiliary Control Register 1
Read/Write
Address 3DH
Value after reset : 00H
7 0
6 0
5 SRST
4 0
3 0
2 PD
1 OPS1
0 OPS0
SRST Software Reset When this bit is set to "1" 1ms at least, a software reset signal is activated. The effect of the reset signal is same as the hardware reset. This bit is not auto-clear, the software must write "0" to this bit to exit from the reset mode.
Note: When SRST = 1, the chip is in reset state. Read or write to any of the registers is inhibited at this moment.
PD
Power Down
After hardware reset or software rest, PD bit is set to "0". It means W6691system clock is powered up after reset. 0: Power Down Disable. W6691 system clock is not allowed to be powered down. 1: Power Down Enable. If S interface can not receive non info 0 signal from line, W6691 enter power down mode automatically.
84
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
OPS1-0
Output Phase Delay Compensation Select1-0
These two bits select the output phase delay compensation. OPS1 0 0 1 1 OPS0 Effect 0 1 0 1 No output phase delay compensation Output phase delay compensation 260ns Output phase delay compensation 520 ns Output phase delay compensation 1040 ns
8.9.7 ACTL2
Auxiliary Control Register2
Read/Write
Address 3EH
Value after reset : 40H
7 0
6 ACTL1S
5 LC
4 0
3 SPU
2 0
1 0
0 0
ACLT1S
Activate Layer1 Status
0: When Layer 1 operates in activate state, ACTL1S pin is pulled to low level. In contrast, if Layer 1 operates in deactivate state, ACTL1S pin is driven to high level. 1: The ACTL1 output level is programmed by microprocessor.(ACTL2 : ACLT1S) LC LED Controlled
If ACLTS1is set to "1", LC bit is programmable by microprocessor. 0: It shows ACTLS1 pin is driven to high level. 1: It shows ACTLS1 pin is driven to low level. SPU: Software Power UP
If SPU is set to "1", W6691 can awaked from power down mode.
85
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
8.9.8 ACTL3
Auxiliary Control Register 3
Read/Write
Address 3FH
Value after reset : 00H
7 0
6 INTOL
5 0
4 0
3 0
2 0
1 0
0 0
INTOL Interrupt
Output Level Configuration
0: It shows INT pin is low active (open drain). 1: It shows INT pin is high active.
8.10 B1 Channel HDLC Controller Register Address MAP
TABLE 8.7 B1 CHANNEL HDLC CONTROLLER REGISTER ADDRESS MAP
Offset 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F R_clear B1_EXIR R/W R R/W R/W R/W R/W R R R/W B1_EXIM B1_STAR B1_ADM1 B1_ADM2 B1_ADR1 B1_ADR2 B1_RBCL B1_RBCH B1_IDLE R/W R/W B1_CMDR B1_MODE Access R W Register Name B1_RFIFO B1_XFIFO Description B1 channel receive FIFO B1 channel transmit FIFO Reserved B1 channel command register B1 channel mode control Reserved B1 channel extended interrupt B1 channel extended interrupt mask B1 channel status register B1 channel address mask 1 B1 channel address mask 2 B1 channel address 1 B1 channel address 2 B1 channel receive frame byte count low B1 channel receive frame byte count high B1 channel transmit idle pattern Publication Release Date: Sep 2001 Revision 1.1
86
Preliminary W6691
8.11 B1 Channel HDLC controller Register Memory Map
TABLE 8.8 B1 CHANNEL HDLC CONTROLLER REGISTER MEMORY MAP
Offset R/W 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F R_clr B1_EXIR R/W R R/W R/W R/W R/W R R R/W B1_EXIM B1_STAR 0 1 0 RMR RMR RDOV MA16 MA26 RA16 RA26 RBC6 0 IDLE6 RME RME CRCE MA15 MA25 RA15 RA25 RBC5 LOV IDLE5 R/W R/W B1_CMDR RACK B1_MODE MMS RRST ITF 0 RACT R W Name B1_RFIFO B1_XFIFO Reserved 0 XACT RDOV RDOV RMB MA14 MA24 RA14 RA24 RBC4 RBC12 IDLE4 0 XMS XME FTS1 XFR XFR 0 MA11 MA21 RA11 RA21 RBC1 RBC9 IDLE1 XRST FTS0 XDUN XDUN XBZ MA10 MA20 RA10 RA20 RBC0 RBC8 IDLE0 B1_128 SW56 0 1 0 MA13 MA23 RA13 RA23 RBC3 RBC11 IDLE3 0 1 XDOW MA12 MA22 RA12 RA22 RBC2 RBC10 IDLE2 7 6 5 4 3 2 1 0
Reserved
B1_ADM1 MA17 B1_ADM2 MA27 B1_ADR1 B1_ADR2 B1_RBCL B1_RBCH B1_IDLE RA17 RA27 RBC7 0 IDLE7
8.11.1 B1_ch receive FIFO
B1_RFIFO
Read
Address 50H
The B1_RFIFO is a 128-byte depth FIFO memory with programmable threshold. The threshold value determines when to generate an interrupt. When more than a threshold length of data has been received, a RMR interrupt is generated. After an RMR interrupt, 64 or 96 bytes can be read out, depending on the threshold setting. In transparent mode, when the end of frame has been received, a RME interrupt is generated. After an RME interrupt, the number of bytes available is less than or equal to the threshold value.
8.11.2 B1_ch transmit FIFO
B1_XFIFO
Write
Address 51H
The B1_XFIFO is a 128-byte depth FIFO with programmable threshold value. The threshold setting is the same as B1_RFIFO. Publication Release Date: Sep 2001 Revision 1.1
87
Preliminary W6691
When the number of empty locations is equal to or greater than the threshold value, a XFR interrupt is generated. After a XFR interrupt, up to 64 or 96 bytes of data can be written into this FIFO for transmission.
8.11.3 B1_ch command register
Value after reset: 00H 7 RACK RACK 6 RRST 5 0 4 0
B1_CMDR
Read/Write
Address 53H
3 0
2 XMS
1 XME
0 XRST
Receive Message Acknowledge
After a RMR or RME interrupt, the microprocessor reads out the data in B1_RFIFO, it then sets this bit to explicitly acknowledge the interrupt. This bit is write only. It's auto-clear. Writing "0" to this bit has no effect. If RACK bit is set to "1" for operating "Receiver Acknowledge", It is not necessary to reset RACK bit to "0" by host processor. That is to say, once RACK is set to "1", RACK bit is reset to "0" by W6691 automatically.
RRST
Receiver Reset
Setting this bit resets the B1_ch HDLC receiver. This bit is write-only. It's auto-clear. Writing "0" to this bit has no effect. If RRST bit is set to "1" for operating "Receiver Reset", It is not necessary to reset RRST bit to "0" by host processor. That is to say, once RRST is set to "1", RRST bit is reset to "0" by W6691 automatically.
XMS
Transmit Message Start/Continue
In transparent mode, setting this bit initiates the transparent transmission of B1_XFIFO data. The opening flag is automatically added to the message by the B1_ch HDLC controller. Zero bit insertion is performed on the data. This bit is also used in subsequent transmission of the frame. In extended transparent mode, settint this bit activates the transmission of B1_XFIFO data. No flag, CRC or zero bit insertion is added on the data. This bit is write-only. It's auto-clear. Writing "0" to this bit has no effect. If XMS bit is set to "1" for operating "Transmit Message Start/Continue", It is not necessary to reset XMS bit to "0" by host processor. That is to say, once XMS is set to "1", XMS bit is reset to "0" by W6691 automatically. XME Transmit Message End
In transparent mode, setting this bit indicates the end of the whole frame transmission. The B1_ch HDLC controller transmits the data in FIFO and automatically appends the CRC and the closing flag sequence in transparent mode.
88
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
In extended transparent mode, setting this bit stops the B1_XFIFO data transmission. This bit is write-only. It's auto-clear. XRST Transmitter Reset
Setting this bit resets the B1_ch HDLC transmitter and clears the B1_XFIFO. The transmitter will send inter frame time fill pattern on B channel in transparent mode, or idle pattern in extended transparent mode. This command also results in a transmit FIFO ready condition. This bit is write only. It's auto-clear.
8.11.4 B1_ch Mode Register
Value after reset: 00H 7 MMS MMS 6 ITF 5 RACT 4 XACT
B1_MODE
Read/Write
Address
54H
3 B1_128K
2 SW56
1 FTS1
0 FTS0
Message Mode Setting
Determines the message transfer modes of the B1_ch HDLC controller: 0: Transparent mode. In received direction, address comparison is performed on each frame. The frames with matched address are stored in B1_RFIFO. Flag deletion, CRC check and zero bit deletion are performed. In transmitted direction, the data is transmitted with flag insertion, zero bit insertion and CRC generation. 1: Extended transparent mode. In received direction, all data are received and stored in the B1_RFIFO. In transmitted direction, all data in the B1_XFIFO are transmitted without alteration. ITF Inter-frame Time Fill
Defines the inter-frame time fill pattern in transparent mode. 0 : Mark. The binary value "1" is transmitted. 1 : Flag. This is a sequence of "01111110".
RACT
Receiver Active
"1": transmitter is active, 64 KHz clock is provided. "0": transmitter is inactive, clock is LOW to save power. This bit is read/write. Read operation returns the previously written value. Note: The receiver is deactive after hardware reset or software reset.
89
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
XACT
Transmitter Active
"0": transmitter is active, 64 KHz clock is provided. "1": transmitter is inactive, clock is LOW to save power. This bit is read/write. Read operation returns the previously written value. Note: The transmitter is deactive after hardware reset or software reset.
B1_128
128K Mode
"1": Both B1 and B2 channels in layer 1 are combined into single layer 2 channel. The layer 2 B1 channel can operates in transparent mode or extended transparent mode and layer 2 B2 channel is not used. "0": Both B1 and B2 channels in layer 1 are not combined. This bit is read/write. Read operation returns the previously written value. SW56 Switch 56 Traffic
0: The data rate in B1 channel is 64 kbps. 1: The data rate in B1 channel is 56 kbps. The most significant bit in each octet is fixed at "1". Note: In 56 kbps mode, only transparent mode can be used. FTS1-0 FIFO Threshold Select
These two bits determine the B1 channel receive and transmit FIFO's threshold setting. An interrupt is generated when the number of received data or the number of vacancies in XFIFO reaches the threshold value.
FTS1 0 0 1 1
FTS0 0 1 0 1
Threshold (byte) 64 Reserved 96 Not allowed
8.11.5 B1_ch Extended Interrupt Register B1_EXIR
Value after reset: 00H 7 0 6 RMR 5 RME 4 RDOV 3 0 2 0 1 XFR
Read_clear
Address 56H
0 XDUN
90
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
RMR
Receive Message Ready
At least a threshold lenth of data has been stored in the B1_RFIFO. RME Receive Message End
Used in transparent mode only. The last block of a frame has been received. The frame length can be found in B1_RBCH + B1_RBCL registers. The number of data available in the B1_RFIFO equals frame lenth modulus threshold. The result of CRC check is indicated by B1_STAR:CRCE bit. When the number of last block of a frame equals the threshold, only RME interrupt is generated. RDOV Receive Data Overflow
Data overflow occurs in the receive FIFO. The incoming data will overwrite the data in the receive FIFO. XFR Transmit FIFO Ready
This interrupt indicates that up to a threshold length of data can be written into the B1_XFIFO. XDUN Transmit Data Underrun
This interrupt occurs when the B1_XFIFO has run out of data. In this case, the W6691 will automatically reset the transmitter and send the inter frame time fill pattern on B channel. The software must wait until transmit FIFO ready condition (via XFR interrupt), re-write data, and issue XMS command to re-transmit the data.
8.11.6 B1_ch Extended Interrupt Mask Register
Value after reset: FFH 7 1 6 RMR 5 RME 4 RDOV 3 1 2 1
B1_EXIM
Read/Write
Address 57H
1 XFR
0 XDUN
Setting the bit to "1" masks the corresponding interrupt source in B1_EXIR register. Masked interrupt status bits are read as zero when B1_EXIR register is read. They are internally stored and pending until the mask bits are zero. All the interrupts in B1_EXIR will be masked if the IMASK : B1_EXI bit is set to "1".
8.11.7 B1_ch Status Register
Value after reset: 20H 7 0 6 RDOV 5 CRCE 4 RMB
B1_STAR
Read
Address 58H
3 0
2 XDOW
1 0
0 XBZ
91
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
RDOV
Receive Data Overflow
A "1" indicates that the D_RFIFO is overflow. The incoming data will overwrite data in the receive FIFO. The overflow condition will set both the status and interrupt bits. It is recommended that software must read the RDOV bit after reading data from receive FIFO at RMR or RME interrupt. The software must abort the data and issue a RRST command to reset the receiver if RDOV = 1. CRCE CRC Error
Used in transparent mode only. This bit indicates the result of frame CRC check: 0 : CRC correct 1 : CRC incorrect RMB Receive Message Aborted
Used in transparent mode only. A "1" means that a sequence of seven 1's was received and the frame is aborted by the B1_HDLC controller. Software must issue RRST command to reset the receiver. Note: Bit CRCE is valid only after a RME interrupt and remains valid until the frame is acknowledged via RACK command. RMB must be polled after a RMR/RME interrupt. XDOW Transmit Data Overwritten
At least one byte of data has been overwritten in the B1_XFIFO. This bit is cleared only by XRST command. XBZ Transmitter Busy
The B1_HDLC transmitter is busy when XBZ is read as "1". This bit may be polled. The XBZ bit is active when an XMS command was issued and the message has not been completely transmitted.
8.11.8 B1_ch Address Mask Register 1
Value after reset: 00H 7 MA17 MA17-10 6 MA16 5 MA15 4 MA14 3 MA13
B1_ADM1
Read/Write
Address
59H
2 MA12
1 MA11
0 MA10
Address Mask Bits
Used in transparent mode only. These bits mask the first byte address comparisons. If the mask bit is "1", the corresponding bit comparison with B1_ADR1 is disabled. 0: Unmask comparison 1: Mask comparison
92
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
8.11.9 B1_ch Address Mask Register 2
Value after reset: 00H 7 MA27 MA27-20 6 MA26 5 MA25 4 MA24 3 MA23
B1_ADM2
Read/Write
Address 5AH
2 MA22
1 MA21
0 MA20
Address Mask Bits
Used in transparent mode only. These bits mask the second byte address comparisons. If the mask bit is "1", the corresponding bit comparison with B1_ADR2 is disabled. 0: Unmask comparison 1: Mask comparison
8.11.10 B1_ch Address Register 1 B1_ADR1
Value after reset: 00H 7 RA17 RA17-10 6 RA16 5 RA15 4 RA14 3 RA13 2 RA12
Read/Write
Address
5BH
1 RA11
0 RA10
Address Bits
Used in transparent mode only. These bits are used for the first byte address comparisons.
8.11.11 B1_ch Address Register 2 B1_ADR2
Value after reset: 00H 7 RA27 RA27-20 6 RA26 5 RA25 4 RA24 3 RA23 2 RA22
Read/Write
Address
5CH
1 RA21
0 RA20
Address Bits
Used in transparent mode only. These bits are used for the second byte address comparisons.
8.11.12 B1_ch Receive Frame Byte Count Low
Value after reset: 00H 7 RBC7 6 RBC6 5 RBC5 4 RBC4 3 RBC3 2 RBC2
B1_RBCL
Read Address 5DH
1 RBC1
0 RBC0
93
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
RBC7-0
Receive Byte Count
Used in transparent mode only. Eight least significant bits of the total number of bytes are in a received frame. These bits are valid only after a RME interrupt and remain valid until the frame is acknowledge via the RACK bit.
8.11.13 B1_ch Receive Frame Byte Count High B1_RBCH
Value after reset: 00H 7 0 LOV 6 0 5 LOV 4 3 2 1 RBC9 0
Read Address 5EH
RBC12 RBC11 RBC10
RBC8
Message Length Overflow
Used in transparent mode only. A "1" in this bit indicates a received message 8192 bytes. This bit is valid only after RME interrupt and is cleared by the RACK command. RBC12-8 Receive Byte Count
Used in transparent mode only. Five most significant bits of the total number of bytes are in a received frame. These bits are valid only after a RME interrupt and remain valid until the frame is acknowledge via the RACK bit. Note: The frame length equals RBC12-0. This length is between 1 and 8191. After a RME interrupt, the number of data available in B1_RFIFO is frame length modulus threshold. Remainder = RBC12-0 MOD threshold No of available data = remainder No of available data = threshold if remainder 0 or if remainder = 0
The remainder equals RBC5-0 if threshold is 64.
8.11.14B1_ch Transmit Idle Pattern
Value after reset: FFH 7 IDLE7 IDLE7-0 6 IDLE6 5 IDLE5 4 IDLE4 3 IDLE3
B1_IDLE
Read/Write
0 IDLE0
Address 5FH
2 IDLE2
1 IDLE1
This pattern is transmitted when the transmitter is active and transmit FIFO is empty. Valid in extended transparent mode only. Publication Release Date: Sep 2001 Revision 1.1
94
Preliminary W6691
8.12 B2 Channel HDLC Controller Register Address Map
TABLE 8.9 B2 CHANNEL HDLC CONTROLLER REGISTER ADDRESS MAP
Offset 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F R_clear B2_EXIR R/W R R/W R/W R/W R/W R R R/W B2_EXIM B2_STAR B2_ADM1 B2_ADM2 B2_ADR1 B2_ADR2 B2_RBCL B2_RBCH B2_IDLE R/W R/W B2_CMDR B2_MODE Access R W Register Name B2_RFIFO B2_XFIFO Description B2channel receive FIFO B2 channel transmit FIFO Reserved B2 channel command register B2 channel mode control Reserved B2 channel extended interrupt B2 channel extended interrupt mask B2 channel status register B2 channel address mask 1 B2 channel address mask 2 B2 channel address 1 B2 channel address 2 B2 channel receive frame byte count low B2 channel receive frame byte count high B2 channel transmit idle pattern
8.13 B2 Channel HDLC Controller Register Memory Map
TABLE 8.10 B2 CHANNEL HDLC CONTROLLER REGISTER MEMORY MAP
Offset R/W 70 71 72 73 74 75 76 R_clr B2_EXIR 0 RMR RME R/W R/W B2_CMDR RACK B2_MODE MMS RRST ITF 0 RACT R W Name B2_RFIFO B2_XFIFO Reserved 0 XACT RDOV 0 0 0 XMS SW56 0 XME FTS1 XFR XRST FTS0 XDUN 7 6 5 4 3 2 1 0
Reserved
95
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
77 78 79 7A 7B 7C 7D 7E 7F
R/W R R/W R/W R/W R/W R R R/W
B2_EXIM B2_STAR
1 0
RMR RDOV MA16 MA26 RA16 RA26 RBC6 0 IDLE6
RME CRCE MA15 MA25 RA15 RA25 RBC5 LOV IDLE5
RDOV RMB MA14 MA24 RA14 RA24 RBC4 RBC12 IDLE4
1 0 MA13 MA23 RA13 RA23 RBC3 RBC11 IDLE3
1 XDOW MA12 MA22 RA12 RA22 RBC2 RBC10 IDLE2
XFR 0 MA11 MA21 RA11 RA21 RBC1 RBC9 IDLE1
XDUN XBZ MA10 MA20 RA10 RA20 RBC0 RBC8 IDLE0
B2_ADM1 MA17 B2_ADM2 MA27 B2_ADR1 B2_ADR2 B2_RBCL B2_RBCH B2_IDLE RA17 RA27 RBC7 0 IDLE7
The B2 channel HDLC controller register's definitions and functions are the same as those of B1 channel HDLC. Please refer to B1 channel section for a detailed description.
96
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
9. ELECTRICAL CHARACTERISTICS
9.1 Absolute Maximum Rating
Parameter Voltage on any pin with respect to ground Ambient temperature under bias Maximum voltage on VDD Symbol VS TA VDD Limit Values -0.4 to VDD+0.4 0 to 70 6 Unit V C V
9.2 Power Supply
The power supply is 5 V 5 %.
9.3 DC Characteristics
TA=0 to 70 C; VDD=5 V 5 %, VSSA=0 V, VSSD=0 V Parameter Low voltage High voltage input input Symbol VIL VIH VOL VOH ICC 2.4 1.5 Min -0.4 2.0 Max 0.8 VDD +0.4 0.4 Unit V V V V mA VDDA=5V, S/T layer 1 in state "F3 Deactivated without clock" VDD=5V, S/T layer 1 in state "F7 Activated" 0 V < VIN < VDD to 0V 0 V < VOUT < VDD to 0V All pins except SX1,2, SR1,2 All pins except SX1 2 SR1 2 Publication Release Date: Sep 2001 Revision 1.1 IOL= 12 mA Test conditions Remarks
Low output voltage High output voltage Analog power supply current: power down Analog power supply current: activated Input leakage current Output lk
ICC
6.5
mA
ILI ILO
10 10
A A
97
Preliminary W6691
leakage current Absolute value of output pulse amplitude (VSX2-VSX1) Transmitter output current Transmitter output impedance
1)
SX1,2, SR1,2 VX 2.03 2.10 2.31 2.39 V V RL=50
1) 1)
SX1,2
RL=400
IX RX
7.5 30 23
13.4
mA k
RL=5.6
1)
SX1,2 SX1,2
Inactive or during binary ONE During binary ZERO (RL=50 )
Note:
Due to the transformer, the load resistance seen by the circuit is four times RL.
Capacitances TA=25 C, VDD= 5 V 5 %, VSSA= 0V, VSSD=0V, fc=1 Mhz, unmeasured pins grounded. Parameter Input capacitance I/O pin capacitance Output capacitance against VSSA Input capacitance Load capacitance Symbol CIN CIO COUT CIN CL Min. Max. 7 7 10 7 50 Unit pF pF pF pF pF Remarks All pins except SR1,2 All pins except SR1,2 SX1,2 SR1,2 XTAL1,2
Recommended oscillator circuits Crystal specifications Parameter Frequency Frequency tolerance Load capacitance Oscillator mode calibration CL Symbo l f Values 7.680 Max. 100 Max. 50 Fundamental Unit MHz ppm pF
Note: The load capacitance CL depends on the crystal specification. The typical values are 33 to 47 pF. Publication Release Date: Sep 2001 Revision 1.1
98
Preliminary W6691
External ocsillator input (XTAL1) clock characteristics Parameter Duty cycle Min. 1:2 Max. 2:1
9.4 Preliminary Switching Characteristics
9.4.1 PCM Interface Timing
PBCK (1.536MHz) 24 CHs PFCK1 CH 1 PFCK2 CH 2
PTXD
Port1
Port2
Port1
Port2
PRXD
Port1
Port2
Port1
Port2
Note 1: These drawings are not to scale. 2: The frequency of PBCK is 1536 kHz which includes 24 channels of 64 kbps data. The PFCK1 and PFCK2 are located at channel 1 and channel 2, each with a 8 x PBCK duration.
99
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
Detailed PCM timing
ta1 ta2 PBCK ta3 ta5
PFCK1 PFCK2
ta4 PTXD ta7 PRXD
ta6
ta8
PARAMETER ta1 ta2 ta3 ta4 ta5 ta6 ta7 ta8
PARAMETER DESCRIPTIONS PBCK pulse high PBCK pulse low Frame clock asserted from PBCK PTXD data delay from PBCK Frame clock deasserted from PBCK PTXD hold time from PBCK PRXD setup time to PBCK PRXD hold time from PBCK
MIN. 195
NOMINAL 325 325
MAX. 455 20 20 20
REMARKS Unit = nS
10 20 10
Note : The PCM clocks are locked to the S/T receive clock. At every two or three PCM frame time (125 s), PBCK and PFCK1, PFCK2 may be adjusted by one local oscillator cycle (130 ns) in order to synchronize with S/T clock. This shift is made on the LOW level time of PBCK and the HIGH level time is not affected. This introduces jitters on the PBCK, PFCK1 and PFCK2 with jitter amplitude 260 ns (peak-to-peak) and jitter frequency about 2.67~4 kHz.
100
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
9.4.2 8-bit Microprocessor Timing
Intel mode read cycle timing
t1 ALE t2 AD<7:0> t3 D<7:0> t6 CS# t4 RD# t5 t11 t8 t7 t9 A<7:0>
t10
A<7:0>
Intel mode write cycle timing
t1 ALE t2 AD<7:0> t3 D<7:0> t6 CS# t4 WR# t12 t13 t14 t7 t15 A<7:0>
t10
A<7:0>
101
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
Motorola mode read cycle timing
A<7:0> t16 CS# t17 t19 t18 t20 DS# t22 RW t23 D<7:0> t24 t21
Motorola mode write cycle timing
A<7:0> t16 CS# t17 t19 t18 t26 DS# t25 RW t28 D<7:0> t29 t27
102
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
PARAMETER t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 t27 t28 t29
PARAMETER DESCRIPTIONS ALE pulse width Address setup time to ALE Address hold time from ALE Address setup time to RD#, WR# RD# pulse width CS# setup time to RD#, WR# CS# hold time from RD#, WR# Data output delay from RD# Data float from RD# ALE guard time RD# recovery time WR# pulse width WR# recovery time Data setup time to WR# Data hold time from WR# Address setup time to DS# Address hold time from DS# CS# setup time to DS# CS# hold time from DS# DS# read pulse width DS# read recovery time RW setup time to DS# read Data output delay from DS# Data hold time from DS# RW setup time to DS# write DS# write pulse width DS# write recovery time Write data setup time to DS# Write data hold time from DS#
MIN. 50 15 10 0 110 0 0
MAX.
REMARKS
50 25 15 70 60 70 35 10 25 10 10 10 110 70 0 110 25 0 60 70 35 10
103
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
9.5 AC Timing Test Conditions
TA= 0 to 70 C, VDD= 5 V 5 % Inputs are driven to 2.4 V for logical 1 and 0.4 V for logical 0. Measurements are made at 2.0 V for logical 1 and 0.8 V for logical 0. The AC testing input/output waveforms are shown below : ". "0".
2.4
2.0 0.8 2.0
Test Point 0.4
0.8
Device Under Test Cload = 150pF
10. ORDERING INFORMATION
PART NUMBER W6691CD W6691CP PACKAGE TYPE 64-pin LQFP 68-pin PLCC PRODUCTION FLOW Commercial, 0 C to +70 C
0 0
Commercial, 0 C to +70 C
104
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
11. PACKAGE DIMENSIONS
64L LQFP (10 x 10 x 1.4mm )
Dimension in inch
Dimension in mm
Symbol
Min.
0.002 0.053 0.007 0.004
Nom.
Max.
0.063 0.006
Min.
0.05 1.35 0.17 0.09
Nom.
Max.
1.60 0.15
A A1 A2 b c D E e HD HE L L1 y
0.055 0.008
0.057 0.011 0.008
1.40 0.20
1.45 0.27 0.20
0.393 0.393 0.020 0.472 0.472 0.018 0.024 0.039 0.003 0 3.5 7 0 0.030 0.45
10.00 10.00 0.50 12.00 12.00 0.60 1.00 0.08 3.5 7 0.75
105
Publication Release Date: Sep 2001 Revision 1.1
Preliminary W6691
Headquarters
Winbond Electronics (H.K.) Ltd.
Unit 9-15, 22F, Millennium City, No. 4, Creation Rd. III, No. 378 Kwun Tong Rd; Science-Based Industrial Park, Kowloon, Hong Kong Hsinchu, Taiwan TEL: 852-27513100 TEL: 886-3-5770066 FAX: 852-27552064 FAX: 886-3-5792766 http://www.winbond.com.tw/ Voice & Fax-on-demand: 886-2-27197006
Winbond Electronics North America Corp. Winbond Memory Lab. Winbond Microelectronics Corp. Winbond Systems Lab.
2727 N. First Street, San Jose, CA 95134, U.S.A. TEL: 408-9436666 FAX: 408-5441798
Taipei Office
11F, No. 115, Sec. 3, Min-Sheng East Rd., Taipei, Taiwan TEL: 886-2-27190505 FAX: 886-2-27197502
Note: All data and specifications are subject to change withou t notice.
106
Publication Release Date: Sep 2001 Revision 1.1


▲Up To Search▲   

 
Price & Availability of W6691CD

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X